jvm-memory-pressure.asciidoc 837 B

12345678910111213141516171819202122232425262728
  1. // tag::cloud[]
  2. From your deployment menu, click **Elasticsearch**. Under **Instances**, each
  3. instance displays a **JVM memory pressure** indicator. When the JVM memory
  4. pressure reaches 75%, the indicator turns red.
  5. You can also use the <<cluster-nodes-stats,nodes stats API>> to calculate the
  6. current JVM memory pressure for each node.
  7. // tag::jvm-memory-cat-nodes[]
  8. [source,console]
  9. ----
  10. GET _nodes/stats?filter_path=nodes.*.jvm.mem.pools.old
  11. ----
  12. Use the response to calculate memory pressure as follows:
  13. JVM Memory Pressure = `used_in_bytes` / `max_in_bytes`
  14. // end::jvm-memory-cat-nodes[]
  15. // end::cloud[]
  16. // tag::self-managed[]
  17. To calculate the current JVM memory pressure for each node, use the
  18. <<cluster-nodes-stats,nodes stats API>>.
  19. include::jvm-memory-pressure.asciidoc[tag=jvm-memory-cat-nodes]
  20. // end::self-managed[]