Search code examples
javajvmjmap

How to use jmap heap


I have seen in tutorials, that with command jmap -heap<pid>, I can receive info about heap state.

Now this command is unavailable.

There are only jmap -dump:live,format:b,file=heap.bin but it save data to unreadable bin format.

How can I receive heap state info using jmap to console?

*On Windows

Upd. I found the answer: On new versions Jdk we can use command:

jhsdb jmap --heap --pid


Solution

  • I found the answer. In new JDK versions it works:

    jhsdb jmap --heap --pid <pid number>