Get JVM statistics

GET /_node/stats/jvm

Get threads count, garbage collators(GC) and memory details.

Query parameters

  • pretty boolean

    If you append ?pretty=true to the request, the JSON returned will be pretty formatted. Use it for debugging only!

Responses

  • 200 application/json

    A JSON object containing jvm statistics.

    Hide response attribute Show response attribute object
    • jvm object
      Hide jvm attributes Show jvm attributes object
      • threads object
        Hide threads attributes Show threads attributes object
        • count integer

          The number of active JVM threads.

        • peak_count integer

          The peak number of active JVM threads.

      • mem object
        Hide mem attributes Show mem attributes object
        • heap_used_percent integer

          The percentage of heap memory used.

        • heap_committed_in_bytes integer(int64)

          The committed heap memory in bytes.

        • heap_max_in_bytes integer(int64)

          The maximum heap memory in bytes.

        • heap_used_in_bytes integer(int64)

          The used heap memory in bytes.

        • non_heap_used_in_bytes integer(int64)

          The used non-heap memory in bytes.

        • non_heap_committed_in_bytes integer(int64)

          The committed non-heap memory in bytes.

        • pools object
          Hide pools attributes Show pools attributes object
          • survivor object
            Hide survivor attributes Show survivor attributes object
            • peak_used_in_bytes integer(int64)
            • used_in_bytes integer(int64)
            • peak_max_in_bytes integer(int64)
            • max_in_bytes integer(int64)
            • committed_in_bytes integer(int64)
          • old object
            Hide old attributes Show old attributes object
            • peak_used_in_bytes integer(int64)
            • used_in_bytes integer(int64)
            • peak_max_in_bytes integer(int64)
            • max_in_bytes integer(int64)
            • committed_in_bytes integer(int64)
          • young object
            Hide young attributes Show young attributes object
            • peak_used_in_bytes integer(int64)
            • used_in_bytes integer(int64)
            • peak_max_in_bytes integer(int64)
            • max_in_bytes integer(int64)
            • committed_in_bytes integer(int64)
      • gc object
        Hide gc attribute Show gc attribute object
        • collectors object
          Hide collectors attributes Show collectors attributes object
          • old object
            Hide old attributes Show old attributes object
            • collection_time_in_millis integer(int64)
            • collection_count integer
          • young object
            Hide young attributes Show young attributes object
            • collection_time_in_millis integer(int64)
            • collection_count integer
      • uptime_in_millis integer(int64)

        The JVM uptime in milliseconds.

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 } }