-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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
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.
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?
Asked: 2013-07-17 22:02:02 +0800
Seen: 28 times
Last updated: Jul 23 '13