gpt4 book ai didi

java - jmap 崩溃并显示 "can not get class data for"

转载 作者:IT王子 更新时间:2023-10-29 00:14:42 26 4
gpt4 key购买 nike

有 Java 核心转储;运行 jmap:

/usr/java/jdk1.8.0_25/bin/jmap -dump:format=b,file=dump.hprof  /usr/bin/java core.31497 

给出以下异常:

Attaching to core core.31497 from executable /usr/bin/java, please wait...
...
JVM version is 25.25-b02
...
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at sun.tools.jmap.JMap.runTool(JMap.java:201)
at sun.tools.jmap.JMap.main(JMap.java:130)
Caused by: sun.jvm.hotspot.utilities.AssertionFailure: can not get class data for sun/nio/ch/ThreadPool$$Lambda$10x00000007c0214428
at sun.jvm.hotspot.utilities.Assert.that(Assert.java:32)
at sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeInstance(HeapHprofBinWriter.java:803)
...
at sun.jvm.hotspot.tools.Tool.start(Tool.java:223)
at sun.jvm.hotspot.tools.Tool.execute(Tool.java:118)
at sun.jvm.hotspot.tools.HeapDumper.main(HeapDumper.java:83)

有什么想法吗?

最佳答案

正如@sethwm 提到的,这是一个已知错误。

它已从 Java 8 Update 60 开始修复。

关于java - jmap 崩溃并显示 "can not get class data for",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26882094/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com