Posts /

Logrotate 100% CPU usage

Twitter Facebook Google+
24 Jun 2016

Today i found a logrotate process who was using 100% of a server cpu. To find where’s the problem just check the status file.

tail /var/lib/logrotate.status

You’ll see what file is logrotate processing, in my case one rotate was misconfigured and a exponential loop was running . It was rotating file who was already rotated, so the number of files and size was exponential and almost filled a partition.

Twitter Facebook Google+