JVM-HSDB use

HSDB

transfer

sudo java -cp /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/lib/sa-jdi.jar sun.jvm.hotspot.HSDB

Find class information

  • Use jps to find out the id of the process we want to view
  • Use HSDB's File-> attach -> process id
    Insert picture description here
  • You can check the address of the meta information of the class through the Class Browser, and you can see the Klass class in the method area.
    Insert picture description here
    Insert picture description here
  • Use the tool Inspector, enter the address to find InstanceKlass
    Insert picture description hereInsert picture description here

Find Oop object

Insert picture description here

  • On the left is the address of the corresponding class, and on the right is the remark
    Insert picture description here

Detach must be closed, otherwise the program will not stop the small bug

Guess you like

Origin blog.csdn.net/null_zhouximin/article/details/112669271
use
use