1. jps

Java Process Status Tool, one of the most commonly used tools. List all vm processes that are running, and display the name of the primary vm execution class and the local Virtual Machine Identifier (LVMID). For local VMS, LVMID is consistent with the PROCESS IDENTIFIER (PID) of the OPERATING system. JPS can also view the process status of remote VMS that have RMI enabled using the RMI protocol. jps -v

2. jstat

The JVM Statistics Monitoring tool is a command line tool used to monitor various running states of virtual machines. Displays runtime data such as classloading, memory, garbage collection, and just-in-time compilation in local or remote virtual machine processes. On a server without a GUI, it is a common tool for locating vm performance problems at run time. jstat [option vmid interval count]

3. jinfo

Configuration info for Java, a tool for viewing configuration information. Jinfo option vmID jinfo-sysprops 1323, print the system.getProperties () System variable of the VM process.

4. jmap

Memory Map for Java, a memory impact tool, is used to generate heap dump snapshots. It can also query heap and method area details, such as space usage. jmap option vmid

5. jhat

Java Heap Analysis Tool for vm roll-out snapshot analysis, used with JMap. Built-in a miniature HTTP/WEB server, after analysis can be viewed using a browser. However, this tool is not generally used because it takes a lot of resources to do analysis directly on the server, which affects the stability of the production server, and it is not as powerful as Visual VM, Eclipse Memory Analyzer, and IBM Heap Analyzer.

6. jstack

Stack Trace for Java, a Java stack trace tool, is used to generate a snapshot of virtual machine threads at the current time. A thread snapshot is a collection of method stacks that are being executed by each thread in the current VIRTUAL machine. The purpose of a thread snapshot is to locate the cause of a long pause, such as deadlock between threads, dead loops, and long suspension caused by requests for external resources. When a thread pauses, you can look at the call stack of each thread through JStack to see what the unresponsive thread is doing in the background or waiting for resources. jstack option vmid