java - Strange Behaviour of Garbage Collector on Tomcat -


We have a really weird behavior with one of our apps running a Tomcat 7 (with Java 1.6) < / P>

The app performs really well for a few days, so we see a peak in the garbage collector time, CPU usage is more than 10 times the normal load and memory is no longer free:

used memory

The last drop was the restart of an app It may improve your performance as you can see in the graph, free space by GC which is less and less in each run and in the end it is not emptying any memory, so the display of the app is actually low.

How can this behavior be corrected?

It looks like a memory leak - If GC memory can not be further free, It is possible that some codes should be maintained in the context of unused objects. You should try to track the remaining items in memory (your graphic tool should have some way to peek in pile memory areas and give information about the built-in items) and make sure that you have any reference to the unused items Erase so that GC is free to them.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -