weblizer caused load damn high

neorder

Verified User
Joined
Oct 1, 2003
Messages
336
00:45:59 up 27 days, 11:47, 1 user, load average: 184.25, 74.71, 38.43
496 processes: 495 sleeping, 1 running, 0 zombie, 0 stopped
CPU states: cpu user nice system irq softirq iowait idle
total 0.7% 0.0% 1.0% 0.0% 0.0% 98.0% 0.0%
cpu00 0.7% 0.0% 0.2% 0.0% 0.0% 98.9% 0.0%
cpu01 1.3% 0.0% 2.1% 0.0% 0.2% 96.2% 0.0%
cpu02 0.0% 0.0% 1.0% 0.2% 0.0% 98.6% 0.0%
cpu03 1.0% 0.0% 0.8% 0.0% 0.0% 98.1% 0.0%
Mem: 2061128k av, 1936288k used, 124840k free, 0k shrd, 39936k buff
1456428k actv, 255472k in_d, 25772k in_c
Swap: 2144636k av, 781652k used, 1362984k free
 
i notice this happens daily, and only happening when webalizer is running, it will last about 10-20 minites.

how can i set webalizer to run only at night time?

and is it normal that the load would shoot up so high when webalizer is running?
 
By default Webalizer is set to run at 12:30 early in the morning every day.

You can find the cron in the /etc/crontab file.
 
thanks, my crontab file was empty, i notice most cron job were setup under /etc/cron.daily

i've these files under cron.daily

00-logwatch 00webalizer chkrootkit.sh chkrootkit.sh.bk fw logrotate makewhatis.cron prelink rpm slocate.cron tmpwatch

when i open 00webalizer, it contains only this:

#! /bin/bash
# update access statistics for the web site

if [ -s /var/log/httpd/access_log ] ; then
/usr/bin/webalizer
fi

exit 0

so nothing related to cron job. after that i did a locate webalizer.conf and found

locate webalizer.conf
/etc/httpd/conf.d/webalizer.conf
/etc/webalizer.conf.sample
/etc/webalizer.conf.moved

i opened each file but can't find any option that allow me to set the timing.

please, where to set it the cron, or how to simply disable webalizer? i may use urchin instead.

thanks a lot.
 
I'm using FreeBSD and everything is located in /etc/crontab
As far as I know the root crontab is the same for all *nix based systems unless purposely changed?

Eitherway locate the root crontab file. It should contain all system crons such as running directadmins commands every 1min, webalizer, resetting each month etc.

This is the contents of my /etc/crontab except for system maintenance crons. The one that is seperated from the rest is the one your looking for.

Code:
* * * * * root /usr/local/directadmin/dataskq
2 0-23/6 * * * root echo 'action=vacation&value=all' >> /usr/local/directadmin/data/task.queue;
5 0 * * * root /usr/sbin/quotaoff -a; /sbin/quotacheck -aug; /usr/sbin/quotaon -a;


30 0 * * * root echo 'action=tally&value=all' >> /usr/local/directadmin/data/task.queue


40 1 1 * * root echo 'action=reset&value=all' >> /usr/local/directadmin/data/task.queue
0 4 * * * root echo 'action=check&value=license' >> /usr/local/directadmin/data/task.queue
 
Hello, I have the same problem on a server:

from "top":

4418 root 62 0 2296K 1648K RUN 245:41 63.08% 63.08% webalizer

It's been running for quite some time now, is there anything I can do so it uses less cpu?
Is it possible to run webalizer with a different priority, maybe by using "nice"?
 
Last edited:
Back
Top