httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arnab Ganguly <agangul...@gmail.com>
Subject Re: [users@httpd] Too many open files (24) - ulimit not obeyed?
Date Wed, 11 Feb 2009 06:40:25 GMT
I assume you tried "ulimit -H -n 65536" in the apachectl, also echo the
changed value within the script see the changes are getting affected for the
current process.
Next is can you see the TCP states of the socket opened, it is quite
possible the sockets are opened but not closed correctly hence you upper
limit gets exhausted.
Please try out the following and update.
-A

On Wed, Feb 11, 2009 at 3:25 AM, Fletcher Cocquyt <fcocquyt@stanford.edu>wrote:

> Hi, my apache 2.0.52 is logging
> Too many open files (24) and throwing HTTP error code 500
>
> the apachectl script sets the max FD to 65536,
> and lsof shows ~20,000 entries for httpd
> (about 6000 txt - others are pipes to cronolog)
>
> It seems like the ulimit is not obeyed, but I echoed the settings after the
> apachectl runs at its at the hard limit.
>
> god@web-04:~ 1:53pm 51 # lsof | wc -l
>   20558
> god@web-04:~ 1:53pm 52 # lsof | egrep httpd | wc -l
>   15978
>
> Does anyone have a hint how to make apache happy and use the 64k limit?
>
> many thanks
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Mime
View raw message