httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jaspreet Singh <>
Subject [users@httpd] Re: [apache-modules] Filtering/Interception Error log strings
Date Fri, 13 May 2005 12:30:02 GMT

On Fri, 2005-05-13 at 13:46 +0200, wrote:
> > 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.
> Are you _shure_ about this diagnosis? Why would Apache need to 'select' on
> the log file descriptors? How did you come to this conclusion?
>  Ralf Mattes

thanx a lot for the reply.

You getting me wrong ... the number of open fd for the httpd process
becomes 1023+ . So when httpd opens sockets to listen they get fd_num >

Now when apache selects on these sockets .. its gets an error , because
select syscall's fd_set is defined in select.h as
	__fd_mask fds_bits[__FD_SETSIZE / __NFDBITS];

where __FD_SETSIZE = 1024.

apache's recomiple can solve the problem .. but i dont want to do it.
Alternatively i want to itercept error logs (using custom module or
otherwise) and log them myself. Access logs can always be constructed
using request_rec , so no need to intercept them.

Jaspreet Singh

Don't Walk as if you own the world,
      Walk as if you don't damn who owns it.

Jaspreet Singh
Software Engineer,
Ensim India.
+91 9890712226

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