Articles in this section

High CPU usage occurs during Plesk Daily Maintenance task execution on a Plesk server

Plesk for Linux kb: technical ABT: Group A

Applicable to:

  • Plesk for Linux

Symptoms

  • RHEL-based OS is installed in the server.
  • High CPU usage occurs around Plesk Daily Maintenance task execution time.
  • Plesk Administrator receives the notification mails from Health Monitor about high Apache CPU usage and sw-engine processes are in top

Cause

AWstats package is corrupted.

The process like the following one consumes all the CPU:

20936 ? RN 0:19 \_ /usr/bin/perl /usr/lib64/plesk-9.0/logresolvemerge

All the domains that use AWstat as webstatistics tool have access_log.webstat files with non-zero size, for some of them it can be about several GBs. As a result, access_log.webstat files are not being processed properly and its size increases permanently. Parsing of such files during execution of Daily Maintenance  task consumes a lot of CPU.

Resolution

Re-install AWstats feature using Plesk Installer at Tools & Settings > Updates.

Click on a section to expand

If solution does not help::
  1. Connect to the server via SSH
  2. Find all the domains that use AWstats and truncate files to zero size:

    # plesk db -Nse "select d.name from domains d, hosting h where d.id=h.dom_id and h.webstat='awstats';" | xargs -i find /var/www/vhosts/system/{}/logs/ -type f -name "*.webstat" | xargs -i truncate --size 0 {}

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.