[users@httpd] Apache 2.2.3 and 'File Descriptor Limits'

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

 



Hi.

We have an older Apache 1.3 server with 130-ish VirtualHosts on
Solaris 8. This runs PHP and mod_perl with lots of dependencies. We've
built Apache 2.2.3 with the same basic functionality (PHP4.4.4,
mod_perl2.0.2). On this server each vhost has it's own access_log and
error_log, and we want to continue this.

In Apache 1.3 (and 2.0 according to the docs[1][2]) we add
"-DHIGH_SLACK_LINE=256" to CFLAGS to increase the number of
descriptions the server can use:

  CFLAGS="-DHIGH_SLACK_LINE=256" ./configure ...

I've ported the old config to Apache 2.2, and we're about 11 vhosts
over the limit on the new build. The 1.3.37-server works. The
2.2.3-server starts if i comment out 11 vhosts. With 10 vhosts
commented out, the server dumps this to the "global" error_log, and
dies:

  [Tue Sep 26 17:16:41 2006] [error] (24)Too many open files: could
  not open mime types config file /our/path/to/mime.types.
  Configuration Failed

With 9 vhosts removed it dies with the following message:

  Unable to open logs

We used the HIGH_SLACK_LINE-flag for our Apache-2.2.3-build as well,
even though the docs[3] say nothing about it. What's the proper way to
do this for Apache 2.2.3? 

Also: should the flag be put in EXTRA_CFLAGS instead of CFLAGS? What's
the difference?

Thanks for any help on this.

[1] http://httpd.apache.org/docs/1.3/misc/descriptors.html
[2] http://httpd.apache.org/docs/2.0/misc/descriptors.html
[3] http://httpd.apache.org/docs/2.2/vhosts/fd-limits.html


Rgds,
Kenneth Svee

---------------------------------------------------------------------
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