0

memory leak?

asked 2013-07-17 22:02:02 +0800

mabio gravatar image mabio
3 1

In the system, the user uses the same screen several times. After recording the fields are cleared for the user enters with a new record. The user make this the whole day. Then the page is not refresh! With the passage of time, all actions performed on this screen stay slower. The user can temporarily relieve refreshing the page (F5) or Logging out of the system and logging in again. Using the JProfiler I could see that gonna increasing the usage the memory!! The Garbage collection does not seem to understand that some objects are no longer used and should be cleaned. If the user goes to another screen and then back in the same, the page then works normally (same as F5 to refresh the page). Any suggestions? ZK Version: 5.0.7.1

delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2013-07-18 08:33:30 +0800

tomyeh gravatar image tomyeh
610 1 3
http://blog.zkoss.org ZK Team

Detecting memory leak is a long and painful process. The number of desktops (DesktopImpl) can be a good starting point. First, the number shall be similar to the number of browsers being opened. Second, though really depends, number of particular application-level objects is usually proportion to the number of desktop. If not, it is probably a leak.

Avoiding memory leak is one of the top priority tasks in ZK. So far there is no known problem about it.

link publish delete flag offensive edit
0

answered 2013-07-23 13:30:50 +0800

mabio gravatar image mabio
3 1

updated 2013-07-23 13:33:59 +0800

Thank you tomyeh! But even I'm with the problem. I did some tests and it seems that the problem is in the component MessageBox. If the user to use the page without refresh it (F5) then the system become increasingly slow. If in the screen not show message then the system work very fast, but when show any message then increase the time in milliseconds in comparison with the previous record. In the first records not have problem, but after one hour work in this screen without refresh it, the system become very slow. What to do?

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
2 followers

RSS

Stats

Asked: 2013-07-17 22:02:02 +0800

Seen: 28 times

Last updated: Jul 23 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More