
loosejar
loosejar
Description
loosejar is a simple Java Agent that can be used to discover unnecessary jars lying on application classpath. It performs per classloader JVM heap analysis and displays its results. loosejar can be safely used during development, QA, UAT or even in production as it doesn't modify the state of the JVM at all and adds no overhead.
The usage is very simple:
- Start your application or application server with
-javaagent:loosejar.jar
flag (loosejar.jar
should obviously point to the correct path of the actual jar) - Exercise your application to make sure that the classes get loaded into the JVM.
- Get loosejar analysis results via JMX console (open
jconsole
and runcom.googlecode.loosejar.LooseJarMBean#summary()
inMBeans
folder) or on application shutdown (via regular console log).
loosejar can only be used on Java 1.5 or higher JVMs.
loosejar 1.0.0 has been released!
Mentions
- Eamonn McManus's Blog
- Fred Jean's Blog
The project is developed and maintained by Kyrill Alyoshin.