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>