You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Aidan Whitehall <Ai...@Fairbanks.co.uk> on 2003/09/05 21:11:16 UTC
[users@httpd] rotatelogs limitation
I've got about 25 sites on a W2K server (dual PIII 800, 400Mb RAM)
that's running Apache 2 with Virtual Hosts. rotatelogs is used on each
site for both the TransferLog and ErrorLog to create rolling log files
for each day, as in:
TransferLog "|bin/rotatelogs.exe
'D:/pathToLogsFolder/www_access_%Y%m%d.log' 86400"
ErrorLog "|bin/rotatelogs.exe 'D:/pathToLogsFolder/www_error_%Y%m%d.log'
86400"
After adding a few more sites and one reboot later, a number of services
didn't restart properly. I'm pretty sure that the number of rotatelogs
processes was the culprit -- I removed the ErrorLog reference in each
Virtual Host entry (thereby halving the number of rotatelogs processes),
rebooted and, voila -- everything's running smoothly after a reboot.
Is the limit to the number of rotatelogs processes dictated by just the
amount of available RAM on the server? And is there a smarter way of
achieving daily rolling access and error logs, either by using
rotatelogs differently or using a.n.other utility?
Thanks
--
Aidan Whitehall <ma...@fairbanks.co.uk>
Macromedia ColdFusion Developer
Fairbanks Environmental Ltd +44 (0)1695 51775
Queen's Awards Winner 2003 <http://www.fairbanks.co.uk/go/awards>
________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
---------------------------------------------------------------------
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
Re: [users@httpd] rotatelogs limitation
Posted by Joshua Slive <jo...@slive.ca>.
On Fri, 5 Sep 2003, Aidan Whitehall wrote:
> After adding a few more sites and one reboot later, a number of services
> didn't restart properly. I'm pretty sure that the number of rotatelogs
> processes was the culprit -- I removed the ErrorLog reference in each
> Virtual Host entry (thereby halving the number of rotatelogs processes),
> rebooted and, voila -- everything's running smoothly after a reboot.
>
> Is the limit to the number of rotatelogs processes dictated by just the
> amount of available RAM on the server? And is there a smarter way of
> achieving daily rolling access and error logs, either by using
> rotatelogs differently or using a.n.other utility?
On unix systems, this is usually caused by running out of file-handles,
but it could by any sort of resource limitation. I would try starting up
apache manually to see what kind of errors it generates.
Most people address this problem by logging all their virtual hosts to one
access logs and splitting later, as described here:
http://httpd.apache.org/docs-2.0/logs.html#virtualhost
Unfortunately, there is no similar solution for error logs.
Joshua.
---------------------------------------------------------------------
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