Goal of this tiny project is to automate searching for memory leaks in Apache Karaf.
It searches for leaked references to classloaders.
Build maven project as usual
mvn clean package
-
take heap dump with command
jmap -dump:live,format=b,file=file_with_heapdump.hprof PID
-
pass dump to this program
java -jar target/memory-leak-search-1.0-SNAPSHOT.jar /path/to/file_with_heapdump.hprof