logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

JMap - Analyze Java Memory | Online Free DevTools by Hexmos

Analyze Java memory with JMap. Inspect heap usage, generate heap dumps for analysis, and diagnose memory leaks. Free online tool, no registration required.

jmap

Java memory map tool. More information: https://docs.oracle.com/en/java/javase/20/docs/specs/man/jmap.html.

  • Print shared object mappings for a Java process (output like pmap):

jmap {{java_pid}}

  • Print heap summary information:

jmap -heap {{filename.jar}} {{java_pid}}

  • Print histogram of heap usage by type:

jmap -histo {{java_pid}}

  • Dump contents of the heap into a binary file for analysis with jhat:

jmap -dump:format=b,file={{path/to/file}} {{java_pid}}

  • Dump live objects of the heap into a binary file for analysis with jhat:

jmap -dump:live,format=b,file={{path/to/file}} {{java_pid}}

See Also