为什么jmap命令运行异常java.lang.reflect.InvocationTargetException?

时间:2013-09-09 18:48:48

标签: jvm jmap

当我在linux上运行此命令 jmap -heap 12671 以查看在我的系统上运行的java应用程序的当前堆大小时,在显示预备空间信息后,此异常即将到来

线程“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:601)
        at sun.tools.jmap.JMap.runTool(JMap.java:197)
        at sun.tools.jmap.JMap.main(JMap.java:128)
Caused by: sun.jvm.hotspot.utilities.AssertionFailure: Invalid bucket id
        at sun.jvm.hotspot.utilities.Assert.that(Assert.java:32)
        at sun.jvm.hotspot.utilities.BasicHashtable.bucket(BasicHashtable.java:62)
        at sun.jvm.hotspot.memory.SymbolTable.probe(SymbolTable.java:86)
        at sun.jvm.hotspot.memory.SymbolTable.probe(SymbolTable.java:74)
        at sun.jvm.hotspot.oops.InstanceKlass.findField(InstanceKlass.java:651)
        at sun.jvm.hotspot.tools.HeapSummary$1StringStat.<init>(HeapSummary.java:279)
        at sun.jvm.hotspot.tools.HeapSummary.printInternStringStatistics(HeapSummary.java:299)
        at sun.jvm.hotspot.tools.HeapSummary.run(HeapSummary.java:150)
        at sun.jvm.hotspot.tools.Tool.start(Tool.java:221)
        at sun.jvm.hotspot.tools.HeapSummary.main(HeapSummary.java:40)
        ... 6 more

0 个答案:

没有答案