Virtual machine performance monitoring and fault handling tools

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.