I'm trying to better understand the memory options for Elastic Search. I was
pretty confident until I looked at the process details recently.
I start a node using this command: bin/elasticsearch -f -Xms5g -Xmx5g
Here is the resulting process details:
elastic 32361 10.3 34.3 5696452 5602468 pts/2 SLl+ 10:59 0:04
/usr/bin/java -Xms256m -Xmx1g -Xss128k -XX:+UseParNewGC
-XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:SurvivorRatio=8
-Xms5g -Xmx5g org.elasticsearch.bootstrap.ElasticSearch
Is the Xms/Xmx setting defining the memory space that is allocated outside
of the jvm heap? The java executable looks like its set to -Xms256m -Xmx1g.
It looks like my command line options do not affect the java memory
I've also tried exporting ES_MIN_MEM and ES_MAX_MEM but I don't see any
differences in the process details.