open file resource limit

Anıl Çetin anil at
Sun Sep 7 02:20:10 MSD 2008

Hi there,
I am getting warnings in error.log;
"[warn] 23770#0: 4096 worker_connections are more than open file 
resource limit: 1024"

I did raised "nginx" user open files limit via ulimit;
"[root at proxy ~]# runuser nginx -c "ulimit -n"

As you think it didn't worked, then I increased open files for "root" to 
40960, the problem has gone. But if I start nginx via an init script I 
get the errors again (as expected).

1) So, must I set ulimit values in init script? Is this right?
2) nginx runs with user "nginx" that limits setted high via 
/etc/security/limits.conf , does root's limits effects the nginx 
processes? If so, may I safely ignore this warning?

More information about the nginx mailing list