Understanding Xms Xmx options

Ok, it is a little confusing because the java binary has 2g memory settings
but the 3g settings are also listed at the end.

Starts with:
/usr/bin/java -Xms2g -Xmx2g -Xss128k ...

Ends with:
... -Xms3g -Xmx3g org.elasticsearch.bootstrap.ElasticSearch

I'll take the node api status page as gospel.