Get JVM statistics
Get threads count, garbage collators(GC) and memory details.
GET /_node/stats/jvm
curl \ --request GET 'http://api.example.com/_node/stats/jvm' \ --user "username:password"
Response examples (200)
{ "jvm": { "gc": { "collectors": { "old": { "collection_count": 0, "collection_time_in_millis": 0 }, "young": { "collection_count": 37, "collection_time_in_millis": 192 } } }, "mem": { "pools": { "old": { "max_in_bytes": 4294967296, "used_in_bytes": 131187920, "peak_max_in_bytes": 4294967296, "committed_in_bytes": 146800640, "peak_used_in_bytes": 135186368 }, "young": { "max_in_bytes": -1, "used_in_bytes": 69206016, "peak_max_in_bytes": -1, "committed_in_bytes": 92274688, "peak_used_in_bytes": 171966464 }, "survivor": { "max_in_bytes": -1, "used_in_bytes": 6291456, "peak_max_in_bytes": -1, "committed_in_bytes": 6291456, "peak_used_in_bytes": 23068672 } }, "heap_max_in_bytes": 4294967294, "heap_used_percent": 4, "heap_used_in_bytes": 206685392, "non_heap_used_in_bytes": 175223280, "heap_committed_in_bytes": 245366784, "non_heap_committed_in_bytes": 196739072 }, "threads": { "count": 117, "peak_count": 119 }, "uptime_in_millis": 2512572 } }