Re: [users@httpd] Filtering/Interception Error log strings

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

 



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