LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   logrotate (https://www.linuxquestions.org/questions/linux-newbie-8/logrotate-71522/)

Rig24 07-10-2003 07:34 AM

logrotate
 
Having a problem with a RedHat 7.3 box. I had some users complaining that the system was running slow. I ran top and it showed lograte taking 99.9 percent of the CPU. It showed that it had been running for over 400 minutes also! Any ideas on how to fix this?

Thanks

MasterC 07-10-2003 11:44 AM

I'd personally try sending it a HUP signal:
run top, note the PID, then:
kill -HUP 1234
Where 1234 is the PID.

If that doesn't work, send it a term, and then last resort, if term doesn't stop it, kill it:
kill -15 1234
^term signal
kill -9 1234
^kill signal
Then check your logs. See what the problem was, and what killing it did. Also, look at your crons and see how often logrotate is supposed to run. If it's every minute maybe consider changing that to once a week or even once a month.

:)

Cool

Rig24 07-11-2003 05:08 AM

I'll give it a try, thanks.


All times are GMT -5. The time now is 04:49 PM.