Nginx 24: Too many open files

Started by sizenet, July 26, 2019, 08:31:40 PM

Previous topic - Next topic

sizenet

Hello everyone;

Nginx not working;

Error log:

2019/07/26 20:58:28 [warn] 20115#20115: the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in /etc/nginx/conf.d/hostname-ssl.conf:8
2019/07/26 20:58:28 [emerg] 20115#20115: open() "/usr/local/apache/domlogs/ozgurfr3.ozgurfreedus.com.error.log" failed (24: Too many open files)

Can someone help me?

evansa

check for user in /etc/security/limits.d and increase the value for nofile

nuffsaid

I'm having a similar issue.

But when i changed the files from the following

username hard nproc 40
username hard nofile 100

to


username hard nproc 500
username hard nofile 1000

I'm still having the same issue.

How can i resolve this and what else can i check / change ?

studio4host

you probably replaced username with user nobody, this is the limit for user nobody which has the issue
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.