The generated Heapdump is by default in the binary, platform-independent,
PHD format, which can be examined using the available tooling.
For more information, see
Available tools for processing Heapdumps. However, an immediately
readable view of the heap is sometimes useful. You can obtain this
view by using the
opts= suboption with
-Xdump:heap (see
Using dump agents). For example:
- -Xdump:heap:opts=CLASSIC will start the default Heapdump agents using classic rather than PHD output.
- -Xdump:heap:defaults:opts=CLASSIC+PHD will
enable both classic and PHD output by default for all Heapdump agents.
You can also define one of the following environment variables:
- IBM_JAVA_HEAPDUMP_TEST, which allows you
to perform the equivalent of opts=PHD+CLASSIC
- IBM_JAVA_HEAPDUMP_TEXT, which allows the
equivalent of opts=CLASSIC