Webalizer causing high CPU load
Posted
by Tom
on Server Fault
See other posts from Server Fault
or by Tom
Published on 2010-04-23T08:54:45Z
Indexed on
2010/04/23
9:03 UTC
Read the original article
Hit count: 57143
We use webalizer to generate reports on our Apache access logs - it is useful in conjunction with Google Analytics.
The problem is that webalizer uses ALOT of CPU when running. If I run top
I can see two perl processes with 90% CPU - this slows down the machine and therefore the website for our users.
Webalizer is run via a daily cron job (/etc/cron.daily/00webalizer
):
#! /bin/bash
# update access statistics for the web site
if [ -s /var/log/httpd/access_log ]; then
exec /usr/bin/webalizer -Q
fi
Does anyone know how to limit how much CPU webalizer can use? For example, would nice
help and how would I use it?
© Server Fault or respective owner