https://docs.oracle.com/en/java/javase/11/troubleshoot/troubleshoot-memory-leaks.html#GUID-93A2C2F1-C22C-4E76-83B8-785D3DD869E9 A) Get a Heap Histogram 1. Modify the following lines You can use the jmap utility to get a heap histogram from a core file, as shown in the following example. - jmap -histo core_file + jmap --histo --exe --core core_file - jmap -histo \ /java/re/javase/6/latest/binaries/solaris-sparc/bin/java core.27421 + jmap --histo --exe /java/re/javase/12/latest/binaries/solaris-sparc/bin/java --core core.27421