httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jaspreet Singh <jsi...@ensim.com>
Subject Re: [users@httpd] Filtering/Interception Error log strings
Date Mon, 16 May 2005 07:15:48 GMT
hey,

On Fri, 2005-05-13 at 16:25 +0100, Joe Orton wrote:
> On Fri, May 13, 2005 at 05:06:30PM +0530, Jaspreet Singh wrote:
> > hi,
> > 
> > I want to use apache to support 2000+ virt-hosts and log errors
> > seperately for each virt-host. 
> > 
> > But apache opens and maintains fd's for each error_log and access_log.
> > And hence the select syscall ( which has a fd_set of max 1024 fds)
> > fails .. and hence apache fails to start up.
> 
> 2.0 will use poll() in preference to select() on platforms where poll()
> is available, which fixes this issue.  Third-party modules/libraries may
> still be an issue, of course.
> 
> joe


No joe , you are wrong. read 
/src/httpd-2.0.46/server/mpm/experimental/perchild/perchild.c +563

Which clearly says .. you have to rebuild (default) apache so that it
supports larger FD_SETSIZE for select.

Anyways, i have formulated a workarround the error_log problem (Thanx to
Ryan Bloom ). I use error_log hook defined in httpd_log.h and intercept
error_log strings modify them and re-report them.

Thanx,
jaspreet


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