使用jstack获取线程转储时出现NullPointerException

时间:2015-01-09 17:21:02

标签: java jstack

我试图调试CPU峰值问题。为了获取线程转储,我使用Jstack,它给出了下面提到的错误:

Thread 1780: (state = IN_JAVA)
Error occurred during stack walking:
java.lang.NullPointerException
    at sun.jvm.hotspot.tools.StackTrace.run(StackTrace.java:78)
    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)

之前有没有人见过这个问题?

JDK版本:1.7

0 个答案:

没有答案