Elasticsearch stores some data directly in the java heap.
We should monitor this usage because it can directly affect the gc.
The data we could collect is available via the node stats api:
- everything under indices.segments
- indices.fielddata
- indices.request_cache
- indices.completion
- indices.query_cache.memory_size_in_bytes