# JVM heap over time graphs

**URL:** https://discuss.elastic.co/t/jvm-heap-over-time-graphs/166553
**Category:** Elasticsearch
**Created:** [January 31, 2019, 12:49pm UTC](https://discuss.elastic.co/t/jvm-heap-over-time-graphs/166553 "2019-01-31T12:49:35Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![juka](https://avatars.discourse-cdn.com/v4/letter/j/8491ac/32.png) [@juka](https://discuss.elastic.co/u/juka)
#### Post date: [January 31, 2019, 12:49pm UTC](https://discuss.elastic.co/t/jvm-heap-over-time-graphs/166553/1 "2019-01-31T12:49:35Z")

</div>

I have a question regarding the JVM Heap Space over time. There is a wonderful documentation about that here:

> **[A Heap of Trouble: Managing Elasticsearch's Managed Heap
	  	 | Elastic](https://www.elastic.co/blog/a-heap-of-trouble)**
>
> A Heap of Trouble Engineers can resist anything except giving their processes more resources: bigger, better, faster, more of cycles, cores, RAM, disks and interconnects! When these resources are not ...

  
but it does not show how the JVM Heap Space should look like in an ideal setup.  
We are running Elasticsearch on Bluemix Kubernetes and have 18 Nodes. There is a curl command querying elasticsearch for the max heapPercent variable in the /\_cat/nodes API every 15 minutes and our graphs look like this for a four hour timeframe:  
 ![heap-space](https://us1.discourse-cdn.com/elastic/original/3X/9/d/9d2e4e628dadfd25e1c4ae9955f024f846d98f34.png)

According to the documentation from the top, the up and down indicates too much heap but we also have nodes that are flat and all share the same configuration. The flatliners are master and data nodes alike and so are the ones that go up and down.

Occasionally we get GC INFO messages in the gc.log and elastic.log files:  
[INFO][o.e.m.j.JvmGcMonitorService] [master-node-x] [gc][419468] overhead, spent [255ms] collecting in the last [1s]

Do you have any documentation or thoughts on that?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [February 28, 2019, 12:49pm UTC](https://discuss.elastic.co/t/jvm-heap-over-time-graphs/166553/2 "2019-02-28T12:49:35Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
