Re: Too many open files (24) - ulimit not obeyed?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux