Link to home
Start Free TrialLog in
Avatar of beer9
beer9Flag for India

asked on

How to monitor tomcat's heap usage?

I keep getting 'java.lang.OutOfMemoryError: Java heap space' and because of that my java app gets hanged and become unresponsive. while taking heap dump I see following error:

root@ip-10-0-55-90:/share/apps/apache-tomcat/current/logs# /usr/java/jdk1.7.0_25/bin/jmap -dump:format=b,file=java_tomcat.bin 47929
47929: Unable to open socket file: target process not responding or HotSpot VM not loaded
The -F option can be used when the target process is not responding

Open in new window


I would like to know how to monitor tomcat' heap usage proactively and that to do in such cases to fix it?
ASKER CERTIFIED SOLUTION
Avatar of Mayavan R
Mayavan R

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of beer9

ASKER

I would like to know how to get the 'heap dump' of a tomcat process in Linux