Difference between Java process memory size and Heap size

Can anybody please tell me the difference in Java process memory size and Java heap size. Actually, I was trying to configure Elasticsearch 1.5.2 instance on a machine. Its document

https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-configuration.html#_environment_variables

says that I can configure maximum allowed memory for the process. I suppose this is how it’s done

export JAVA_OPTS=”-Xms256m -Xmx512m”

Also, I can set ES_HEAP_SIZE environment variable to tweak max heap size (Semantics is not given). Can anybody please tell me the difference between both and how to configure (syntax to specify memory) ES_HEAP_SIZE?


Source: java

Leave a Reply