jmap does not finish dumping the Java heap and seems to hang.

Solution In Progress - Updated -

Issue

We started to run jmap command in order to get a heap dump of a java software which had 31.415 GB heap memory.

# /usr/lib/jvm/java/bin/jmap -F -dump:live,format=b,file=/tmp/jmapdump1.prof 36745

However, jmap did not finish even after 8 hours. so we forced the command to stop.

Questions:

What is happening?

Are there another ways to get a heap dump ?

Environment

Red Hat Enterprise Linux 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content