Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
最近我们的一个 jvm 崩溃了。生成了一个核心文件。我想看看那个文件并找出崩溃的原因。但是我无法分析核心。我使用jmap来分析它。并写了命令-:
jmap -dump:format=b,file=heap.hprof 核心 22234
但我不断收到异常:
正在从可执行核心附加到核心 22234,请稍候...附加到核心文件时出错:Windbg 错误:OpenDumpFile 失败!
我的 Windows 系统中有核心文件。想在那里分析它。不知道该怎么做。请帮忙。谢谢
尝试添加 -F 选项:
jmap -dump:格式=b,文件=heap.bin -F 22234