---
type: api
title: Gets node-level JVM info
description: Show node-level JVM stats, such as the JVM process id, version, VM info, memory usage, and info about garbage collectors.
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/logstash/operation/operation-nodeinfojvm
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/logstash/operation/operation-nodeinfojvm
products:
  - Logstash
---

# Gets node-level JVM info

- Server: `/`

## Paths

- `GET` `/_node/jvm`

- [Basic auth](/elastic/docs-builder/docs/4371/api/doc/logstash/authentication#basicauth)

## Description

Show node-level JVM stats, such as the JVM process id, version, VM info, memory usage, and info about garbage collectors.

## Query String Parameters

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

## Response

Indicates a successful call

`application/json`

- `jvm` (object)
  - `pid` (integer)
  - `version` (string)
  - `vm_name` (string)
  - `vm_version` (string)
  - `vm_vendor` (string)
  - `start_time_in_millis` (integer)
  - `mem` (object)
    - `heap_init_in_bytes` (integer)
    - `heap_max_in_bytes` (integer)
    - `non_heap_init_in_bytes` (integer)
    - `non_heap_max_in_bytes` (integer)
  - `gc_collectors` ([] string)
## Code Examples

#### Console

```console
GET /_node/jvm
```

#### curl

```curl
curl -X GET "/_node/jvm"
```

## Response Examples

#### 200

```json
{
  "jvm": {
    "pid": 84013,
    "version": "21.0.4",
    "vm_name": "OpenJDK 64-Bit Server VM",
    "vm_version": "21.0.4",
    "vm_vendor": "Eclipse Adoptium",
    "start_time_in_millis": 1630980000000,
    "mem": {
      "heap_init_in_bytes": 1073741824,
      "heap_max_in_bytes": 1073741824,
      "non_heap_init_in_bytes": 2555904,
      "non_heap_max_in_bytes": 0
    },
    "gc_collectors": [
      "G1 Young Generation",
      "G1 Concurrent GC",
      "G1 Old Generation"
    ]
  }
}
```

