Created
October 29, 2014 18:16
-
-
Save cdenneen/df9c3475bd07b3013a07 to your computer and use it in GitHub Desktop.
jstack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@ctclogstash02 ~]# printf "0x%x\n" 1961 | |
0x7a9 | |
[root@ctclogstash02 ~]# su -s /bin/bash -c 'jstack 1082' logstash > /tmp/jstack.out | |
1082: Unable to open socket file: target process not responding or HotSpot VM not loaded | |
The -F option can be used when the target process is not responding | |
[root@ctclogstash02 ~]# su -s /bin/bash -c 'jstack -F 1082' logstash > /tmp/jstack.out | |
Attaching to process ID 1082, please wait... | |
Debugger attached successfully. | |
Server compiler detected. | |
JVM version is 24.65-b04 | |
java.lang.RuntimeException: Unable to deduce type of thread from address 0x00007faf9801c800 (expected type JavaThread, CompilerThread, ServiceThread, JvmtiAgentThread, or SurrogateLockerThread) | |
at sun.jvm.hotspot.runtime.Threads.createJavaThreadWrapper(Threads.java:162) | |
at sun.jvm.hotspot.runtime.Threads.first(Threads.java:150) | |
at sun.jvm.hotspot.runtime.DeadlockDetector.createThreadTable(DeadlockDetector.java:149) | |
at sun.jvm.hotspot.runtime.DeadlockDetector.print(DeadlockDetector.java:56) | |
at sun.jvm.hotspot.runtime.DeadlockDetector.print(DeadlockDetector.java:39) | |
at sun.jvm.hotspot.tools.StackTrace.run(StackTrace.java:52) | |
at sun.jvm.hotspot.tools.StackTrace.run(StackTrace.java:45) | |
at sun.jvm.hotspot.tools.JStack.run(JStack.java:60) | |
at sun.jvm.hotspot.tools.Tool.start(Tool.java:221) | |
at sun.jvm.hotspot.tools.JStack.main(JStack.java:86) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
at sun.tools.jstack.JStack.runJStackTool(JStack.java:136) | |
at sun.tools.jstack.JStack.main(JStack.java:102) | |
Caused by: sun.jvm.hotspot.types.WrongTypeException: No suitable match for type of address 0x00007faf9801c800 | |
at sun.jvm.hotspot.runtime.InstanceConstructor.newWrongTypeException(InstanceConstructor.java:62) | |
at sun.jvm.hotspot.runtime.VirtualConstructor.instantiateWrapperFor(VirtualConstructor.java:80) | |
at sun.jvm.hotspot.runtime.Threads.createJavaThreadWrapper(Threads.java:158) | |
... 15 more | |
Exception in thread "main" java.lang.reflect.InvocationTargetException | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
at sun.tools.jstack.JStack.runJStackTool(JStack.java:136) | |
at sun.tools.jstack.JStack.main(JStack.java:102) | |
Caused by: java.lang.RuntimeException: Unable to deduce type of thread from address 0x00007faf9801c800 (expected type JavaThread, CompilerThread, ServiceThread, JvmtiAgentThread, or SurrogateLockerThread) | |
at sun.jvm.hotspot.runtime.Threads.createJavaThreadWrapper(Threads.java:162) | |
at sun.jvm.hotspot.runtime.Threads.first(Threads.java:150) | |
at sun.jvm.hotspot.tools.StackTrace.run(StackTrace.java:65) | |
at sun.jvm.hotspot.tools.StackTrace.run(StackTrace.java:45) | |
at sun.jvm.hotspot.tools.JStack.run(JStack.java:60) | |
at sun.jvm.hotspot.tools.Tool.start(Tool.java:221) | |
at sun.jvm.hotspot.tools.JStack.main(JStack.java:86) | |
... 6 more | |
Caused by: sun.jvm.hotspot.types.WrongTypeException: No suitable match for type of address 0x00007faf9801c800 | |
at sun.jvm.hotspot.runtime.InstanceConstructor.newWrongTypeException(InstanceConstructor.java:62) | |
at sun.jvm.hotspot.runtime.VirtualConstructor.instantiateWrapperFor(VirtualConstructor.java:80) | |
at sun.jvm.hotspot.runtime.Threads.createJavaThreadWrapper(Threads.java:158) | |
... 12 more | |
[root@ctclogstash02 ~]# more /tmp/jstack.out | |
Deadlock Detection: | |
Can't print deadlocks:Unable to deduce type of thread from address 0x00007faf9801 | |
c800 (expected type JavaThread, CompilerThread, ServiceThread, JvmtiAgentThread, | |
or SurrogateLockerThread) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment