YuFeng Shen
YuFeng Shen

Reputation: 1565

Get error "windbg error:OpenDumpFile failed" when open the core dump with serviceability agent

I can successfully attach to Java live process by pid using serviceability agent ., however failed to open the core dump with it, and got error "windbg error:OpenDumpFile failed" when open the core dump with serviceability agent . enter image description here

BTW,I capture the dump with the following command , and it would hung if I omit the -F.

jmap.exe -F -dump:format=b,file=c:\temp\HeapDump.hprof pid

The environment:
win 7 64, JDK 7.0(hotspot)

Upvotes: 0

Views: 7240

Answers (2)

Leo Peng
Leo Peng

Reputation: 139

Have a try to use jstack like this in the command line:

jstack 10776 e:\dump.txt

Replace the number 10776 with your own java process id.

Upvotes: 0

apangin
apangin

Reputation: 98324

A heap dump is not a core dump.

Heap dumps generated by jmap can be opened in the tools like VisualVM, Eclipse Memory Analyzer, YourKit Java Profiler etc.

Core dumps (or Minidumps in Windows terminology) are written by the OS or by the debuggers like WinDbg. jmap can also be used to extract a heap dump from a minidump.

Upvotes: 2

Related Questions