Disable memory swap on Unix RPM

Hello i want to diasble memory swapping on elastic search but i don't know how to make it work
i have systemd and i couldn't find this file /etc/systemd/system/elasticsearch.service.d/override.conf
and i tried using sudo systemctl edit elasticsearch it gave me an empty editor and i didn't know what to write. Can you please help me fix this issue


in order to disable swapping of Elasticsearch memory, the file You mentioned should contain:


This is described in the ElasticSearch Reference, but I also did not find it right away.

We also set there the NOFILE limit for Elasticsearch:


Hope, that helps!

thank you for the help turns out i had to manually create it

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.