loosejarDescriptionloosejar 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 run com.googlecode.loosejar.LooseJarMBean#summary() in MBeans 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!
MentionsEamonn McManus's Blog http://weblogs.java.net/blog/emcmanus/archive/2008/02/do_i_really_nee.html Fred Jean's Blog http://blog.fredjean.net/articles/2008/05/06/do-you-really-need-that-jar-file The project is developed and maintained by Kyrill Alyoshin.