httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kenneth Svee <>
Subject [users@httpd] Apache 2.2.3 and 'File Descriptor Limits'
Date Wed, 27 Sep 2006 10:24:15 GMT

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

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


Kenneth Svee

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message