0

I have a Ubuntu 16.4 on an AWS EC2 instance and I have installed java 1.8 and tomcat 8 on this machine. I have deployed one Spring MVC application on this machine. Quite often it gets out of memory issue. I want to analyze the heap dump and I tried by using the below command.

sudo jmap -dump:format=b,file=/opt/tmp/heapdump.bin 37320

But when I execute the above command got the below message.

Unable to open socket file: target process not responding or HotSpot VM not loaded

I want to get the java heap dump from my EC2 instance. Thanks in advance.

trincot
  • 317,000
  • 35
  • 244
  • 286
Chandru Raju
  • 1
  • 1
  • 3
  • Check this https://stackoverflow.com/questions/26140182/running-jmap-getting-unable-to-open-socket-file might help to resolve. – Abhishek Nov 05 '18 at 11:07
  • This dint not solve my problem , i need to get the java heap dump from EC2 instance , are there any other way i can get the dump. My tomcat8 memory is increasing gradually even though if there is no load on the server. – Chandru Raju Nov 06 '18 at 07:48
  • I even tried the options specified in the below link https://stackoverflow.com/questions/3959122/memory-fully-utilized-by-java-concurrenthashmap-under-tomcat – Chandru Raju Nov 06 '18 at 07:49

0 Answers0