ClazzFish is a collection of different modules, which help you to dive into the classpath of your application and to monitor it. Originally it was part of PatternTesting but is now extracted to a separate project.
Part of ClassFish are several modules:
In September 2025 the JUG Saxony Day took place in Eastern Germany. On the talk about "Dead Classes" you could learn
- the technique behind ClazzFish,
- how you use it and
- what are the pitfalls to detect dead classes.
With v3.x a core module is introduced and the ClasspathAgent extended. It allows you now to store a class statistic using ClazzStatistic of the core module. The jdbc module let you monitor your SQL statements and allows you to export it as 'SqlStatistic.csv'.
V2.x supported Java 17 and beyond but still works with Java 11. With v2.3 the ClazzStatistic class was introduced to store the statistic of loaded classes. The use of fast-classpath-scanner to dive into the classpath was discarded (no speedup was measured).
With v0.5 and v0.8 the first steps were done - the transfer of ClasspathMonitor and ResourcepathMonitor from the PatternTesting project. V1.x is mainly for Java 8.
July 2025, Oli B.
