Calculation of used heap size in EAP 6
Issue
- We are using below
clicommand to get theused heap sizeonly but we are are not getting any output from this command.
jboss-cli.sh -c command="/core-service=platform-mbean/type=memory:read-resource(include-runtime=true, recursive=true, recursive-depth=10)" | head -9 | grep -i used | grep -o '[0-9]*"
While below command is working
jboss-cli.sh -c command="/core-service=platform-mbean/type=memory:read-resource(include-runtime=true, recursive=true, recursive-depth=10)" | head -9 | grep -i used
o/p -
"used" => 1108962808L
- We want only
used heap sizein mb , whatLdenotes after the size of memory?
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.