In few circumstances, our application uses about 12 GB of memory. We tried to get a bunch of heaps using the jmap utility. Since the application uses some GB of memory, this causes the application to stop responding and causes problems during production.
In our case, heap usage suddenly increases from 2-3 GB to 12 GB in 6 hours. In an attempt to find a trend in memory usage, we tried to collect a bunch of heaps every hour after restarting the application. But, as said, since the use of jmap causes the application to freeze, we need to restart it, and we cannot get the tendency to use memory.
Is there a way to get the heap heap without the application freezing or is there a utility other than jmap to collect the heap dump.
Thoughts on this are highly appreciated, since without getting a memory usage trend it is very difficult to solve the problem.
Note. Our application runs on CentOS.
Thanks Arun
java heap memory jmap
Arun Dec 30 '14 at 3:12 2013-12-30 03:12
source share