Unable to take heap and thread dumps

Solution Verified - Updated -

Issue

  • Unable to take heap and thread dumps for Java process. Facing the below output:
-bash: jstack: command not found
-bash: jmap: command not found
  • Which package provides the jstack tool in RHEL?

Environment

  • Red Hat build of OpenJDK
    • 6
    • 7
    • 8
    • 11
  • Red Hat Enterprise Linux (RHEL)
    • 6
    • 7
    • 8
    • 9
  • Windows

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