Cannot Open a Hprof Heap Dump Generated With "jrcmd" With Eclipse Memory Analyzer, Showing Error: "Parser found 0 HPROF dumps in file... "

(Doc ID 1451516.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle JRockit - Version R28 to R28.2.0 [Release JRockit]
Information in this document applies to any platform.

Symptoms

On : R28 version, JVM and JDK

When trying to generate a heapdump with JRockit Command Line tool (jrcmd), it produces a very small hprof file. Sampling the liveset size vs Xms and Xmx value, the hprof file is not larger than 50% of current liveset.

When trying to open it with Eclipse MAT, the following error appears:

 

To obtain the heapdump, the following steps were followed:

  1. Determine what the PID for the managed server is ($ps -fea |grep weblogic)
  2. Set up an environment for WebLogic Server Domain ($ . ./setDomainEnv.sh)
  3. Collect a heap dump: $jrcmd hprofdump filename=heapdump.hprof

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms