Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tallpsmith/0591dd238314a6a71bdf to your computer and use it in GitHub Desktop.
Save tallpsmith/0591dd238314a6a71bdf to your computer and use it in GitHub Desktop.
Grabbing the Heap Memory from ActiveMQ using Jolokia REST
#curl --silent -XGET --user admin:admin http://localhost:8161/api/jolokia/read/java.lang:type=Memory/HeapMemoryUsage | python -m json.tool
{
"request": {
"attribute": "HeapMemoryUsage",
"mbean": "java.lang:type=Memory",
"type": "read"
},
"status": 200,
"timestamp": 1420596076,
"value": {
"committed": 226492416,
"init": 131005376,
"max": 954728448,
"used": 31846216
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment