Hsdb is a debugger dedicated to debugging HotSpot VMs and is a graphical interface. There is also a clhsdb-command line HotSpot Debugger, which is the debug interface. Here is the start command:
JAVA-CP.; %java_home%/lib/sa-jdi.jar Sun.jvm.hotspot.HSDB # Start graphical interface java-cp.; %java_home%/lib/sa-jdi.jar Sun.jvm.hotspot.CLHSDB # launch command line interface
After you start Hsdb, connect to the target process using File-, Attach to HotSpot process:
After the connection is successful, the Java Threads interface is opened by default, and a thread such as main is selected, and the toolbar becomes available as follows:
- Inspector: View OOP and Klass object information, double-click the thread name to view this information
- Stack memory: Thread stack RAM
- Show Java stack traces: displaying thread stack information
- Show thread infomation: displaying threading information
- Find crashes
(1) Inspector
(2) Stack Memory
The stack memory interface has 3 columns of information, from left to right: memory address, refers to the virtual address is not a physical address, the address data, in terms of width, as in the case of a 64-bit machine, the word width is 64 bits = 8 bytes; Related comments, vertical lines indicate ranges, horizontal lines indicate descriptions.
Hsdb-hotspot Debugger