Heap size hard-coded in /etc/init.d/elasticsearch
Hi there,
I'm just posting something we found in case others run across it as well. We recently upgraded to elasticsearch es2.3.2 as part of a PeopleTools patch/upgrade. With es2.3.2 comes the ability to run a script that generates the /etc/init.d/elasticsearch service script for you. The generated script hard codes default heap sizes.
Per Oracle Doc ID 2228472.1, the way to configure elasticsearch heap is to use an environment variable ES_HEAP_SIZE as the account that starts elasticsearch. This works if you login as that account and start elasticsearch manually. We configured ours as ES_HEAP_SIZE=30G