Reputation: 6196
We have a GWT based application deployed on Tomcat. Every other day the application crashes with OutOfMemoryException. So i have started taking the heap dump of the application when it is close to using maximum allocated memory.
The behavior of application is the following,
Heap Dump,
We took a heap dump of the tomcat process using jmap to see what is holding on to the memory. The following pictures are taken using Eclipse Memory Analyzer with the heap dump.
We can see that there are lots of hashmap entries being kept in the heap with retained size of 25k and there are about 6 million of them.
Questions:
We have so far used jconsole, jprofiler, MAT, jhat in analyzing the application. And we have no clue where the issue.
Appreciate your help.
Upvotes: 1
Views: 1643
Reputation: 4173
There was a memory leak in WeakMapping
which has been fixed in trunk and the 2.4 branch.
Upvotes: 3