Hsdb-hotspot Debugger

Source: Internet
Author: User

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

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.