Change ulimit value for running elasticsearch in Sonarqube

Donald Le
1 min readAug 31, 2020

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

~~~

--

--

Donald Le

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