jhsdb jstack does not work with AppCDS
Yasumasa Suenaga
yasuenag at gmail.com
Sun Mar 25 13:16:39 UTC 2018
Hi all,
I tried to get jstack via jhsdb from AppCDS enabled process, but it couldn't as below:
---------------
[ysuenaga at fc27 jdk-hs]$ /usr/local/jdk-10/bin/jhsdb jstack --pid 5614
Attaching to process ID 5614, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 10+46
Deadlock Detection:
sun.jvm.hotspot.types.WrongTypeException: No suitable match for type of address 0x0000000800098690
at jdk.hotspot.agent/sun.jvm.hotspot.runtime.InstanceConstructor.newWrongTypeException(InstanceConstructor.java:62)
at jdk.hotspot.agent/sun.jvm.hotspot.runtime.VirtualBaseConstructor.instantiateWrapperFor(VirtualBaseConstructor.java:109)
at jdk.hotspot.agent/sun.jvm.hotspot.oops.Metadata.instantiateWrapperFor(Metadata.java:73)
at jdk.hotspot.agent/sun.jvm.hotspot.oops.Oop.getKlassForOopHandle(Oop.java:210)
at jdk.hotspot.agent/sun.jvm.hotspot.oops.ObjectHeap.newOop(ObjectHeap.java:252)
at jdk.hotspot.agent/sun.jvm.hotspot.runtime.JavaThread.getThreadObj(JavaThread.java:359)
at jdk.hotspot.agent/sun.jvm.hotspot.runtime.JavaThread.getCurrentParkBlocker(JavaThread.java:411)
at jdk.hotspot.agent/sun.jvm.hotspot.runtime.DeadlockDetector.print(DeadlockDetector.java:82)
---------------
I attempt to change SA to refer Klass::_archived_mirror, but I got same exceptions.
How can I avoid this error?
Thanks,
Yasumasa
More information about the serviceability-dev
mailing list