Jimmy's Blog Jimmy Ruska's Blog
Rotate.pl eating CPU Posted on Monday, March 17 2008
Learn to Play Songs by Ear: Ear Training

Today I had an issue in that webmin's /etc/webmin/bandwidth/rotate.pl was taking 99% of the CPU every hour. I guess it's always been there eating up the processor but I've never really noticed until now since it's a cron job. I deleted the entry calling rotate.pl. Suddenly /var/log/bandwidth started increasing at an insane rate. In a day it racked up 17 gigabytes. Deleting it didn't do anything. Here's the solution:

Edit the Syslog.conf with Vi
vi /etc/syslog.conf
click insert key
Add a "#" in front of
kern.=debug -/var/log/bandwidth
Restart the systemlog service
/sbin/service syslog restart
Delete the massive file
rm /var/log/bandwidth

You can check how much disk space any folder takes by typing du -hs foldernamehere. The commmand "df" will tell you how much disk space you have available. Logs definitely can eat tons of space if left unchecked.

Tags: rotate.pl processor, cron job, webmin, function, delete cronjob, disk space keeps increasing centos, deleted webmin, rotatepl

stumble digg delicious

Blog by Jimmy Ruska
Add me: Youtube, Twitter, Facebook, MySpace


More OMFG-Good Links

See all Posts in the Funny Pictures category.
Download mp3s faster than limewire using google.
I've made 100+ free video tutorials.
See the best of the internet today on one page.