Wednesday, November 25, 2009

The beauty of verbose:class

java -verbose:class is simply wonderful, when you are trying to troubleshoot classloader problems.

Here is a sample output:

[INFO ][class  ] created: #2859 org/apache/poi/poifs/filesystem/POIFSDocument (file:/acme/users/abraham/abrahammonitoring/lib/poi-3.5-FINAL-20090928.jar)
[INFO ][class  ] 4391 org/apache/poi/poifs/filesystem/POIFSDocument success (0.36 ms)
[INFO ][class  ] 4394 org/apache/poi/poifs/storage/DocumentBlock fail (0.00 ms)
[INFO ][class  ] 4396 org/apache/poi/poifs/storage/BigBlock fail (0.00 ms)
[INFO ][class  ] created: #2861 org/apache/poi/poifs/storage/BigBlock (file:/acme/users/abraham/abrahammonitoring/lib/poi-3.5-FINAL-20090928.jar)
[INFO ][class  ] 4395 org/apache/poi/poifs/storage/BigBlock success (0.12 ms)
[INFO ][class  ] created: #2860 org/apache/poi/poifs/storage/DocumentBlock (file:/acme/users/abraham/abrahammonitoring/lib/poi-3.5-FINAL-20090928.jar)
[INFO ][class  ] 4393 org/apache/poi/poifs/storage/DocumentBlock success (0.30 ms)
[INFO ][class  ] 4398 org/apache/poi/poifs/filesystem/POIFSDocument$BigBlockStore fail (0.00 ms)
[INFO ][class  ] created: #2862 org/apache/poi/poifs/filesystem/POIFSDocument$BigBlockStore (file:/acme/users/abraham/abrahammonitoring/lib/poi-3.5-FINAL-20090928.jar)



No comments: