Nicholas DiPiazza
Nicholas DiPiazza

Reputation: 10595

What is jmap's default heapdump format?

We are taking heapdumps and have a question:

jmap -dump:file=heapdump.hprof,format=b

OK great, but what if you don't specify a format at all?

jmap -dump:file=heapdump.hprof

Which one will it pick?

Upvotes: 3

Views: 4110

Answers (1)

aleroot
aleroot

Reputation: 72636

The default is binary data file (hprof). You can just try running the command without specifying the format and with format=b and you will find out yourself that they have the same format.

alessio$ file heapdump.hprof 
heapdump.hprof: data

Upvotes: 3

Related Questions