mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-25 07:37:19 -04:00
28 lines
837 B
Text
28 lines
837 B
Text
// tag::cloud[]
|
|
From your deployment menu, click **Elasticsearch**. Under **Instances**, each
|
|
instance displays a **JVM memory pressure** indicator. When the JVM memory
|
|
pressure reaches 75%, the indicator turns red.
|
|
|
|
You can also use the <<cluster-nodes-stats,nodes stats API>> to calculate the
|
|
current JVM memory pressure for each node.
|
|
|
|
// tag::jvm-memory-cat-nodes[]
|
|
[source,console]
|
|
----
|
|
GET _nodes/stats?filter_path=nodes.*.jvm.mem.pools.old
|
|
----
|
|
|
|
Use the response to calculate memory pressure as follows:
|
|
|
|
JVM Memory Pressure = `used_in_bytes` / `max_in_bytes`
|
|
// end::jvm-memory-cat-nodes[]
|
|
|
|
// end::cloud[]
|
|
|
|
// tag::self-managed[]
|
|
To calculate the current JVM memory pressure for each node, use the
|
|
<<cluster-nodes-stats,nodes stats API>>.
|
|
|
|
include::jvm-memory-pressure.asciidoc[tag=jvm-memory-cat-nodes]
|
|
|
|
// end::self-managed[]
|