I running Elasticsearch (version 2.x) on ubuntu. Single node cluster. By default, the max heap size is limited to 1GB. I have two more GBs to allocate for ES heap.
According to official document:
- Opened the file
/etc/init.d/elasticsearch
for editing. - I changed the
ES_HEAP_SIZE
variable of the file to "3gb" and saved the file.
ES_HEAP_SIZE=3g
- According to this solution, I also modified the security limits of the file
/etc/security/limits.conf
by adding those lines:
elasticsearch - nofile 65535
elasticsearch - memlock unlimited
- called service restart
sudo service elasticsearch restart
At this point, I'm expected to find that my ES node is consuming up to 3GB. I'm entered my kopf plugin (monitoring plugin) and saw that max heap size is 1GB (no changes).
What I missing? How to fix?