Sun SDK monitoring and fault handling tools
JPS Virtual machine Process Health tool
Format JPS [option] [HostID]
Local VM unique id:local virtual machine identifier,lvmid
Process id:process Identifier
JPS can query the status of the remote virtual machine process that opened the RMI service through the RMI protocol, hostid the registered host name in the RMI registry.
Main parameters
-Q output Lvmid omit the name of the main class
-m output parameters passed to the main class when the virtual machine process starts
-L outputs the full name of the main class, if the jar package is executed, the output jar package path
-V Output JVM parameters at virtual machine startup
Jstat Virtual Machine Statistics monitoring tool
You can display class loading, memory, garbage collection, JIT compilation, and other running data in a local or remote virtual machine process.
Format: jstat [option Vmid [Interval[s | ms] [COUNT]]
Vmid: The remote virtual machine format is the same as the local virtual machine process vmid and lvmid.
Vmid [Protocol:][//]lvmid[@hostname [:p Ort]/servername]
Interval: Query interval
Count: Number of times
Option: Represents the virtual machine information to query mainly three classes of class load, garbage collection, run-time compilation state
JSTAT-GC 2764 250 20 per 250ms query process 2764 garbage collection situation.
Common options
Jinfo Java configuration information
Format: jinfo [option] pid
The Windows platform has only the most basic-flag options
Jmap Java Memory Imaging tool
Format: jmap [option] Vmid
Jmap-dump:format=b,file=test.bin 8948
Jstat virtual machine heap dump snapshot analysis tool
Format: Jstat file name
Jstack Java Stack Trace tool
Format jstack [option] Vmid
-F Force Print stack information when Jstack [-l] PID is not responding
-L long list. Prints additional information about the lock, such as the ownable synchronizers list belonging to Java.util.concurrent.
-M prints all of the stack information for Java and Native/C + + frameworks.
Typically generates a threaddump or Javacore file, which is a snapshot of the current thread
The most powerful is the one-of-a-kind fault-handling tool for visual VMS
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Virtual machine performance monitoring and troubleshooting tools