I know this is one of the most FAQ in history, but I'm evidently missing
something obvious.
When starting Apache 1.3.12 on my Tru64 5.0 (DS10) box, I receive the
following error:
[Mon Mar 27 10:19:14 2000] [warn] (24)Too many open files: unable to
open a file descriptor above 15, you may need to increase the number
of descriptors
The value of maxusers on this system is 2048. Values for open_max_soft
and open_max_hard are both 4096. I've tried starting httpd with a
wrapper that sets ulimit -n 2048, but still receive the same error.
Our Apache configuration contains 220 virtual hosts, which share a
transfer and error log (i.e., two logfiles total for the virtual hosts).
We have 253 aliases specified in /etc/inet.local, and one IP each on
the two NICs. The aliases are all on the second NIC (tu1); only one IP
is on the first (tu0). We are NFS-mounting the data directories that
the web server will be displaying.
I know the Apache file descriptor documentation (which is at
http://www.apache.org/docs/misc/descriptors.html) mentions library
limitations that may cause problems with greater than 256 descriptors.
I would think this our problem, but we are copying this configuration
from an Alpha 1000 (4.0D w/Apache 1.3.4) on which it runs without errors.
The older system has more aliased IPs (384) and only one NIC, in case
that makes a difference. Maxusers is 512 on the older system.
Experimenting with the number of virtual hosts I can run before getting
the error has shown that 45 is my limit. Another oddity (to me) is that
45 is my limit with the virtual hosts having two shared logs (transfer
& error) or with them logging to separate files. It would seem that
I should have more descriptors available with the shared logging, but
that doesn't appear to be the case.
Would someone point me in the right direction on this? Please feel free
to smack me in the face with its obviousness. :-) Thanks for your help!
Dawn Lovell
dlovell_at_cte.net
Received on Mon Mar 27 2000 - 17:03:43 NZST