Converting binary format IBM Java heap dump (.phd) to text format(.txt)?

Technote (FAQ)


Question

Starting with IBM Java SDK 1.4.2 SR1 the default heapdump format has changed. The default format for a heapdump will be "portable heap dump format" and the file will have an "*.phd" extension. You can convert phd files to txt files to use HeapAnalyzer 1.3.2.

Answer

You can use PrintHeapdump utility to convert IBM Java heap dump phd files to txt files.

  1. Download svcdump.jar from the following document
    http://www.ibm.com/support/docview.wss?uid=swg21190476

  2. Run com.ibm.jvm.ras.findroots.PrintHeapdump with phd file and redirect output to a file:
    java -classpath svcdump.jar com.ibm.jvm.ras.findroots.PrintHeapdump [phd file] > [output file]


Note: You would see an exception like "String index out of bound exception" while running HeapAnalyzer 1.3.2 with converted txt file. You can disregard it since it is caused by additional new line character at the end of converted file.

Cross reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
Application Servers WebSphere Application Server - Express J2EE Development and deployment AIX, Linux, Windows 6.0.2, 6.0.1, 6.0, 5.1.1

Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

WebSphere Application Server
Java SDK

Software version:

5.1.1, 6.0, 6.1, 6.1.1, 7.0, 8.0

Operating system(s):

AIX, Linux, Windows

Reference #:

1196223

Modified date:

2005-01-20

Translate my page

Machine Translation

Content navigation