Skip to content

Inspect `pmap -X` output of a java process, requires Java11, likely not 100% accurate

License

Notifications You must be signed in to change notification settings

bric3/java-pmap-inspector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

java-pmap-inspector

Inspect pmap -X output of a java process, requires Java 11, likely not 100% accurate.

Usage examples
$ pmap -X pid > pmap.txt; java JavaPmapInspector.java pmap.txt
$ java JavaPmapInspector.java <(pmap -X pid)
$ pmap -X pid | java JavaPmapInspector.java -

This project comes from a Java script I created mid-2020 to understand native memory consumption. The Java Native Memory Tracking wasn’t enough to understand the growth of the Resident Set Size of some JVM workloads. It uses the output of pmap (part of the procps package), this tool extract information from the OS /proc filesystem to get the system view of the process memory mappings.

Currently JavaPmapInspector script focus is to help diagnose the considerable amount of glibc arenas.

Contributions more than welcome.

TODO
  • Tests

  • Make an actual project structure

  • …​

About

Inspect `pmap -X` output of a java process, requires Java11, likely not 100% accurate

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages