AWStats consumes too much resource, how to disable temporarily

Posted by trante on Server Fault See other posts from Server Fault or by trante
Published on 2013-10-24T07:58:50Z Indexed on 2013/10/26 9:57 UTC
Read the original article Hit count: 658

Filed under:
|
|

For some days AWStats takes %10-%20 of my CPU, takes 400-550 MB RAM and works for hours. Maybe my site's traffic became larger so process time takes more time than before or some bugs in program makes this.

Anyway I want to disable AWStats temporarily. Maybe I would want to activate it in future. I found that answer. But it gives commands to remove AWStats. I only want to disable it temporarily.

My system is Centos 6.3, Plesk 11.5.30 Update #19. I tried to disable cron jobs.

I run this # killall awstats.pl
I opened # vi /etc/cron.daily/awstats file and I changed it to this:

#!/bin/sh
#/usr/share/awstats/awstats_updateall.pl now -awstatsprog=/var/www/cgi-bin/awstats/awstats.pl -configdir=/etc/awstats >/dev/null 2>&1
exit 0

After some time I still see that awstats is running. What should I do more to not to awstats run again ? But without removing my files.


After changing " /etc/cron.daily/awstats" file awstats doesn't start in daytime. But every night in 03:15 awstats starts again. Because of Plesk auto updates are working at that time, I changed from Plesk. Don't auto update automatically. But it seems like last night at 03:15 awstats started again.

Is there any way to stop awstats temporarily except this solution ? Because this solution deletes awstats configs permanently and I don't know how to revert it back in future ?

Turn off all AWStats for Plesk 11+ domains

#!/bin/bash
for i in /var/www/vhosts/*; do
        echo "Turning off and deleting Stats for"
        echo `basename $i`
        /usr/local/psa/admin/bin/webstatmng --unset-configs --stat-prog=awstats --domain-name=`basename $i`
        /usr/local/psa/admin/bin/webstatmng --clean --stat-prog=awstats --domain-name=`basename $i`
done

© Server Fault or respective owner

Related posts about centos

Related posts about plesk