ispCP - Board - Support
awstats produces high load processes seem to be stuck - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: awstats produces high load processes seem to be stuck (/thread-6581.html)



awstats produces high load processes seem to be stuck - gilbert - 05-01-2009 10:44 PM

Hi,

I have noticed that there are many processess running
/bin/sh -c /var/www/ispcp/engine/awstats/awstats_updateall.pl now -awstatsprog=/usr/lib/cgi-bin/awstats.pl

that seem to be stuck from several days ago.

The load goes sky high on the server until I kill these processes.

Is there anyway to prevent this?
Where should I be looking for the root cause.

I notice that one site seems to get it stuck.
the log file for this domain is 402M


RE: awstats produces high load processes seem to be stuck - rbtux - 05-01-2009 11:22 PM

running awstats more often might help clearing this issue...


RE: awstats produces high load processes seem to be stuck - supaplex - 05-02-2009 06:20 AM

How often does it normally run in rc6? Where do you adjust the frequency that it runs?

I recall there being a cool program I once had on a FreeBSD machine that would act like tail, but record the inode and filesize as the new offset to start at. Does awstats cache this information to seek() into between jobs?


RE: awstats produces high load processes seem to be stuck - supaplex - 05-03-2009 05:49 PM

/etc/cron.d/ispcp snippet
Code:
# AWStats
# 15    */6     *       *       *       root /var/www/ispcp/engine/awstats/awstats_updateall.pl now -awstatsprog=/usr/lib/cgi-bin/awstats.pl >/dev/null 2>&1
# changed on 5/2 due to http://www.isp-control.net/forum/thread-6581.html
15      *       *       *       *       root /var/www/ispcp/engine/awstats/awstats_updateall.pl now -awstatsprog=/usr/lib/cgi-bin/awstats.pl >/dev/null 2>&1

I guess I will see how this goes.