Red hat and max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]

Hi
I am trying to get sonarqube working on redhat server.
sonarqube part seems to start ok, but when it tries to start elasticsearch that part fails.
es.log files get this message

2019.02.14 14:04:02 INFO  es[][o.e.t.TransportService] publish_address {127.0.0.1:9001},   bound_addresses {127.0.0.1:9001}
2019.02.14 14:04:02 WARN  es[][o.e.b.BootstrapChecks] max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]

I have changed /etc/security/limits.conf file to following

  •           hard    nofile          131072
    
  •           soft    nofile          65536
    

root hard nofile 65536
root soft nofile 65536

server is restarted

ulimit -n
ulimit -Sn
ulimit -Hn
after restart all says 65536 when run as root user
when I run for sonar user ulimit -Hn is 131072 -n and -Sn shows 65536

any idea what could be wrong?

solved that one.
if sonarqube is started from systemd, then limit values needs to be placed to sonar.service file

start solving next one.

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