Sonarqube 8.4 not running - max file descriptors too low

Hi -

I’m trying to get Sonarqube 8.4 to run on Ubuntu linux. I followed the documentation and updated the /etc/sysctl.conf with the suggested items.

The sonar.log is showing the following error:

[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]

I’ve googled the error, followed the advice to update the /etc/security/limits.conf file to increase the limits for the “sonarqube” user that I use to run the sonar.sh file, but it hasn’t fixed the issue.

Any advice is appreciated.

Thanks,
David