• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

statistics_collector takes 12-15 hrs to complete

gennolo

Basic Pleskian
I am running Plesk 12.5.30 on several Centos 6.7 VMs.
From some days some VMs takes hours to complete the nightly "statistics_collector" thing (up to 12/15 hours) and increases load average of the VMs themselves.

Usually the process had always took 3-4 hours to complete and I am puzzled in troubleshooting this.

"ps auxf" on the involved boxes show this situation for the most part of the process:

Code:
root      60556  0.0  0.0  19052   604 ?        Ss   03:01   0:00 /usr/sbin/anacron -s
root      61928  0.0  0.0 106060   756 ?        SN   03:26   0:00  \_ /bin/bash /usr/bin/run-parts /etc/cron.daily
root      61952  0.0  0.0 106060   744 ?        SN   03:26   0:00      \_ /bin/sh /etc/cron.daily/50plesk-daily
root      61954  0.0  0.2 355788  4208 ?        SN   03:26   0:00      |   \_ /usr/bin/sw-engine -c /usr/local/psa/admin/conf/php.ini /usr/local/psa/admin/plib/DailyMaintainance/script.php
root      63590  0.0  0.2 354504  4208 ?        SN   03:27   0:00      |       \_ /usr/bin/sw-engine -c /usr/local/psa/admin/conf/php.ini /usr/local/psa/admin/plib/DailyMaintainance/task-script.php ExecuteStatistics --period=daily
root      63595  0.0  0.2 359640  4208 ?        SN   03:27   0:00      |           \_ /usr/bin/sw-engine -c /usr/local/psa/admin/conf/php.ini /usr/local/psa/admin/sbin/statistics --no-webstat
root      63600  0.7  3.7 153452 71452 ?        DN   03:27   2:34      |               \_ /usr/local/psa/admin/bin/statistics_collector
root      61953  0.0  0.0 105948   608 ?        SN   03:26   0:00      \_ awk -v progname=/etc/cron.daily/50plesk-daily progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }

So it appears statistics_collector staying in "uninterruptible sleep" status.

BTW - What is this process doing ?
Code:
awk -v progname=/etc/cron.daily/50plesk-daily progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }

I had problems with statistics_collector in the past resulting my VMs to have high I/O (I upgraded disks to more performant hybrid-NFS storage and the problem seemed partially resolved until today).

Any idea to better troubleshoot what's happening or what part on statistics take so long to complete?
Note that I have already disabled web-statistics on all domains.

Thanks for the help.
 
Hi Igor,
My mistake - I had the previous topic bookmarked to the "old" Odin forum (http://forum.odin.com/) and I didn't realized it was migrated here too so I started a new discussion.
Feel free to close / delete old thread or to move this update in the old discussion.
 
Back
Top