4

当我在 linux 上运行此命令jmap -heap 12671以查看在我的系统上运行的 java 应用程序的当前堆大小然后在显示 prem 空间信息后出现此异常

线程“主”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
4

0 回答 0