views:

165

answers:

2

I am looking at collecting more detailed java statistics (in plain text format) i.e. statistics that the jstat command emits - like garbage collection data etc. Can anyone please suggest me the best tool to collect the java process statistics like jmap.

EDIT

Google gives me advise to use jmap with -histo:live option, but I am not able to understand what information it actually provides. The command I am using is

jmap -histo:live $PID

Output:

 num     #instances         #bytes  class name
----------------------------------------------
   1:         13767        1453320  <constMethodKlass>
   2:         13767        1105416  <methodKlass>
A: 

Maybe you could investigate integrating Shadowtail with your application.

Mark
+1  A: 

You can also take a look at this which is free and is part of the Java API. There are some tutorials that explain how to use this technology. Hope this helps ...

~Bolt

Boltimuss