Virtual machine debugging and monitoring tools

 

JPDA (Java Platform Debugger Architecture): the Java Platform Debugger Architecture. Java virtual machine designed specifically API interface for debugging and monitoring virtual machines

JPDA in accordance with the level of abstraction, is divided into three layers, namely:

(1) JVM TI (Java VM Tool Interface): Foreign expose a virtual machine interface, including debug and profile.
(2) JDWP (Java Debug Wire Protocol): protocol for communication between the debugger and the application.
(3) JDI (Java Debug Interface ): Java library interface to achieve JDWP protocol client, the debugger can be used to debug applications and remote communications.

JDK comes with command-line debugging tool, as follows:

  • jdb command line debugger tool
  • jps lists all PID Java process
  • jstack lists the virtual machines process all the threads running state
  • jmap lists the objects on the heap memory status
  • jstat record virtual machine running, monitoring performance
  • jconsole virtual machine performance / status check visualizer

 

Guess you like

Origin www.cnblogs.com/mazhimazhi/p/11332857.html
Recommended