Is there a way to get the current PermGen and Heap size from the command line in JBoss EAP 6 ?
Environment
- Red Hat JBoss Enterprise Application Platform(EAP)
- 6.x
Issue
- Is there a way to get the current PermGen and Heap size from the command line in JBoss EAP 6?
- How to get the size of the heap for monitoring purpose ?
Resolution
- Use below CLI command to check the memory usage in JBoss EAP 6:
For Standalone mode:
/core-service=platform-mbean/type=memory:read-resource(include-runtime=true)
For Domain mode:
/host=$HOST_NAME/server=$SERVER_NAME/core-service=platform-mbean/type=memory:read-resource(include-runtime=true)
- This CLI command will show memory use for
heap-memoryandnon-heap-memory.PermGenis considered asnon-heap-memory.
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.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
