Change ulimit value for running elasticsearch in Sonarqube

The only way to do this is by changing etc/systemd/system.conf. Changing /systemd/user.conf will cause error as when run elasticsearch, they do not allow to run as root user.

sudo vim /etc/systemd/system.conf

Add the below line

DefaultLimitNOFILE=65535

That’s the trick.

Hope it helps

~~~

Written by

A passionate automation engineer who strongly believes in “A man can do anything he wants if he puts in the work”.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store