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:
This has been happening for a while, I have followed the advice on:
http://www.litespeedtech.com/how-tos.html#qa_incfd
And
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
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!
http://www.litespeedtech.com/how-tos.html#qa_incfd
Code:
root@server2 [~]# cat /proc/sys/fs/file-nr
12750 0 4847816
Code:
ulimit -n 10000
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: