I am seeing too high memory consumption in my elasticsearch instance.
I set ES_HEAP_SIZE=4g.
The starting command for ES starts with:
/usr/lib/jvm/java-8-oracle/jre/bin/java -Xms4g -Xmx4g
So far so good.
But I am seeing more than 7GB RSS memory consumption.
Here is /proc/status output: http://pastebin.com/mXW6Vnfc
But when I run jstat -gc
everything looks normal, I see around 3.7GB in OC and 270 MB in EC (http://pastebin.com/c84urvSM).
This is sorted pmap output: http://pastebin.com/GG92Ercr
Do you have any idea, why the memory consumption is so high?
Also, ES is run on virtual server under OpenVZ.