[solved] Too many open files

IanD

Well-Known Member
#1
Hi,

Around once per hour I am getting the email:

LiteSpeed Web server server on server restarts automatically to fix 503 Errors

Fair enough, I check my log files and I can see this is the problem:

Code:
2011-07-20 22:51:28.771 [ERROR] HttpListener::acceptConnection(): [***.***.***.***] can't accept:Too many open files!
This has been happening for a while, I have followed the advice on:

http://www.litespeedtech.com/how-tos.html#qa_incfd

Code:
root@server2 [~]# cat /proc/sys/fs/file-nr
12750   0       4847816
And

Code:
ulimit -n 10000
Though this normally gets reset back to 2048 after a while.

I have been logging the number of open files of root and nobody with:

#/usr/sbin/lsof -u root | wc -l
#/usr/sbin/lsof -u nobody | wc -l

and it appears that when 'nobody' gets to around 20k, that's when the problems start.

Any any idea what this limit is and how to change it?

Many thanks,

Ian
 
Last edited by a moderator:

IanD

Well-Known Member
#5
Unfortunately it is still happening.. I have sent the lsof output to:

info at litespeedtech.com

Let me know if you need it sending somewhere else.

Thanks for your help.
 

IanD

Well-Known Member
#6
After new force install I am no longer getting this problem which is great.

Still restarting very often due to 503 errors - but I believe this is probably a different problem that I will look into!

Thanks for sorting this one out.
 
Top