LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-23-2005, 03:54 AM   #1
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833

Rep: Reputation: 90
logrotate takes up 100% CPU indefinitely


Hey all,

since some time logrotate goes on indefinitely and takes up 100% cpu. No
idea why...
No logs are of unreasonable size, and all non-zero kb files are being rotated.
Manually rotating gives
Code:
root@leon-fyg:/var/spool# logrotate -df /etc/logrotate.conf
reading config file /etc/logrotate.conf
including /etc/logrotate.d
reading config file syslog
reading config info for /var/log/cron /var/log/debug /var/log/maillog
/var/log/messages /var/log/secure /var/log/spooler /var/log/syslog
/var/log/cups/* /var/log/backup_laptop.log /var/log/backup_laptop.error
reading config info for /var/log/wtmp
and there it hangs forever with 100% cpu uptake.

For what it's worth, this is the wtmp entry in /etc/logrotate.conf:
Code:
# Rotate /var/log/wtmp:
/var/log/wtmp {
    monthly
    create 0664 root utmp
    rotate 1
}
Anyone a clue of what's going on and how to get it in tune again?

Cheers, Leon.
 
Old 05-23-2005, 08:06 AM   #2
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 31
What's in /var/log/wtmp? Is it important that it's rotated?

I ask, because guessing from the name it's got something to do with temp files. My guess is that you don't need to rotate that one.
 
Old 05-24-2005, 03:32 AM   #3
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833

Original Poster
Rep: Reputation: 90
Quote:
Originally posted by killerbob
What's in /var/log/wtmp? Is it important that it's rotated?
From the wtmp man page:
Quote:
DESCRIPTION
The utmp file allows one to discover information about who is currently using the system. There may be more users currently using the system, because not all programs use utmp logging.
I commented out the wtmp entry in /etc/logrotate.conf, but still get the same behavior. Apparently it's something else that's choking the system?

Cheers, Leon.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I stop logrotate from using all my CPU? pdibona Linux - Newbie 21 01-22-2012 05:12 AM
FC 2 GNOME takes 99.9% of cpu. bruse Fedora 6 04-26-2005 07:24 PM
events/0 takes over my cpu tomhemba Fedora 4 08-01-2004 04:05 AM
kernel takes a lot of CPU stephnane AIX 3 04-29-2004 08:41 AM
Need help with logrotate process eating 99.9% CPU glock19 Linux - General 5 12-30-2002 08:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration