4th. Virtual machine performance monitoring and fault handling tools
JPS Virtual machine Process Health tool
Jstat Virtual Machine Statistics Monitor utility JVM Statistics Monitoring Tool
jstat [Option Vmid [Interval[s|ms] [count]]
JSTAT-GC 2764 250 20
Options in which option:-class-gc-gccapacity-gcutil ...
Jinfo Java Configuration Information tool
Jmap Java Intrinsic Mapping tool for generating heap dump snapshots can also be configured with-xx:+heapdumponoutofmemoryerror to allow the JVM to automatically generate dump files when Oom
jmap [option] Vmid
Jmap-dump:file=ss.bin 2260
The option options are:
-dump generating a heap-to-snapshot of Java-dump:[live,]format=b,file=<filename>
-HEAP Displays Java heap details, such as which collector, parameter configuration, generational status, and so on, only valid for Linux/solaris
-histo display of object statistics in the heap, including class, instance data, aggregate capacity
Jhat analyzing heap dump snapshots generated by jmap
Jstack Java Stack Trace tool
Jstack-f|-l|-m Vmid
Jconsle Visualization Tool
Deep understanding of Java Virtual Machines-fourth Chapter