0

I am using Alpine Linux v3.12 and openjdk 11.0.9 I am trying to execute the command below:

jmap -dump:live,format=b,file=application_heap_dump.bin <process_id>

getting sh: jmap: not found

I tried to install jmap but couldn’t find anything apt-get and yum not working

Valeriia
  • 586
  • 2
  • 4
  • 21
  • check the openjdk bin folder there you find the utility jmap, try to run the command from there like cd C:\JAVA\OPENJDK11\openlogic-openjdk-windows-x64\bin and then excute jmap – Mohit Sharma Jun 15 '23 at 10:57
  • I am running jmap from below path /usr/lib/jvm/java-11-openjdk/bin still I am getting error. Under bin folder there are java jjs keytool pack200 rmid rmiregistry unpack200 these files and folders – Ravina Rathod Jun 15 '23 at 12:53
  • jmap is a utility tool that was being supplied by the java providers, if it was not available in the bin folder, download new or different versions and check if the utility was there or not. You can also download from here - https://www.openlogic.com/openjdk-downloads. If it was there, change the Path variable and enjoy your work :-) – Mohit Sharma Jun 16 '23 at 15:25

0 Answers0