Finding JVM arguments in a heap dump
Environment
Java
Issue
- Is it possible to find out what JVM arguments were being used from a heap dump
- How to find the jvm heap and permGen size in a heap dump
- How find jvm heap size from a heap dump
- How to find the Xmx and Xms settings in a heap dump
Resolution
For Oracle JDK and OpenJDK, locate the sun.management.VMManagementImpl object, and examine the vmArgs property using the respective queries:
Eclipse MAT OQL
select * from sun.management.VMManagementImpl
VisualVm OQL
select vm from instanceof sun.management.VMManagementImpl vm
Components
Category
Tags
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.