High load - logwatch

cristian

Verified User
Joined
Feb 18, 2013
Messages
31
Hi,

Every morning i have high load 100% on cpu, this makes the server crash or apache stops handle requests.

2148 root 25 0 184m 181m 1708 R 100.0 5.2 513:53.92 perl

---

:ps aux | grep perl
root 2145 0.0 0.0 2408 884 ? S 04:17 0:00 sh -c ( cat /var/cache/logwatch/logwatch.tkLodV6a/exim | /usr/bin/perl /usr/share/logwatch/scripts/services/exim) 2>&1
root 2146 0.0 0.0 2408 340 ? S 04:17 0:00 sh -c ( cat /var/cache/logwatch/logwatch.tkLodV6a/exim | /usr/bin/perl /usr/share/logwatch/scripts/services/exim) 2>&1
root 2148 99.1 5.1 186056 183828 ? R 04:17 500:28 /usr/bin/perl /usr/share/logwatch/scripts/services/exim
root 2633 0.0 0.0 4056 720 pts/0 S+ 12:42 0:00 grep perl
root 32233 0.0 0.2 9868 8080 ? S 04:02 0:01 /usr/bin/perl -w /etc/cron.daily/0logwatch

--

I added daily to logrotate.

--

I want to change the hour when cron is running logwatch but i can't find in directadmin_cron or in crontab.

Or maybe other solution ?

Thank you.
 
It's probably being run in cron.daily; look at your /etc/cron.daily directory. You can move it elsewhere if you wish.

Jeff
 
Or maybe other solution ?

Check this /etc/anacrontab then...

Code:
#period in days   delay in minutes   job-identifier   command
1       5       cron.daily              nice run-parts /etc/cron.daily
7       25      cron.weekly             nice run-parts /etc/cron.weekly
@monthly 45     cron.monthly            nice run-parts /etc/cron.monthly

or change priority with nice.
 
Back
Top