LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > [solved] Too many open files

Reply
 
Thread Tools Display Modes
  #1  
Old 07-25-2011, 05:39 PM
IanD IanD is offline
Member
 
Join Date: Sep 2010
Posts: 41
Default [solved] Too many open files

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 NiteWave; 07-30-2011 at 04:20 AM.. Reason: it cut off part of my post
Reply With Quote
  #2  
Old 07-25-2011, 06:04 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,227
Please confirm the version: it's the latest 4.1.2 ? if not, do a force re-install and see if issue still exists.
Reply With Quote
  #3  
Old 07-25-2011, 06:16 PM
IanD IanD is offline
Member
 
Join Date: Sep 2010
Posts: 41
It is 4.1.2 - I have forced reinstall and will let you know if it continues.

Thanks.
Reply With Quote
  #4  
Old 07-25-2011, 06:46 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
if it happen again, please compress and send output of lsof.
Reply With Quote
  #5  
Old 07-26-2011, 07:24 AM
IanD IanD is offline
Member
 
Join Date: Sep 2010
Posts: 41
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.
Reply With Quote
  #6  
Old 07-27-2011, 05:49 AM
IanD IanD is offline
Member
 
Join Date: Sep 2010
Posts: 41
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.
Reply With Quote
  #7  
Old 07-29-2011, 01:17 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Please force reinstall 4.1.2, more bug fixed for this issue.
Reply With Quote
  #8  
Old 07-30-2011, 04:03 AM
IanD IanD is offline
Member
 
Join Date: Sep 2010
Posts: 41
Yes - force reinstalling again has fixed it.

Thanks for the awesome level of support here!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:47 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.