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

Re: apache & log files



On Fri, Nov 05, 2004 at 09:40:28AM +0100, Francesco P. Lovergine wrote:
> On Fri, Nov 05, 2004 at 09:09:16AM +1100, Craig Sanders wrote:
> > > For ErrorLog you can pipe to a suitable program which does the same.
> > 
> > but this doesn't.  unless apache has added this feature since i last looked
> > into this (about six months ago) the "suitable program" has no way of
> > separating the error logs for each virtual host, because it's just STDERR with
> > no vhost prefix on each line.
> > 
> 
> ErrorLog "| mytrickyprog www.mydomain.com"
> 
> where mytrickyprog simply echos stdin on the right per-domain file or
> the same log file with the right prefix for each line. Of course you
> need a different directive for each vhost.

which means one open file handle per virtual host per apache process.  which is
exactly what we were trying to avoid.

there's no benefit in doing this...in fact, you're much worse off than just
specifying the ErrorLog filename because you not only have num_vhost *
num_apache_children file handles, you also have the same number of
"mytrickyprog" instances running.  each of which takes up memory and CPU time,
and has at least 4 file handles open itself (stdin, stdout, stderr, and the
error log file)


the whole point of this thread was how to reduce the number of file handles
open, per apache process and on the entire system.


craig

-- 
craig sanders <cas@taz.net.au>           (part time cyborg)



Reply to: