Sunday, April 23, 2017

JVM Profiling

To produce a histogram of all the Java types running in a process (a JVM) first use jps to get the process id of the JVM then use jmap to produce the histogram.

$ jps
32111 Main
$ jmap 32111 -histo 32111 | less