Applicable to:
- Plesk for Windows
- Plesk for Linux
Question
Domain's statistics has been changed. How to manually recalculate statistics for one domain to reflect the changes in Plesk?
Answer
Note: This guide is intended for Plesk administrators with an SSH/RDP access to a Plesk server. If you are a domain owner, please contact your service provider for assistance.
Click on a section to expand
-
Connect to a Plesk server via SSH.
-
Use the 'statistics' utility to calculate web page access statistics, traffic usage statistics and disk space usage statistics:
# plesk sbin statistics --calculate-one --domain-name=example.com
-
Connect to the Plesk server via RDP.
-
Use the 'statistics' utility to calculate traffic usage statistics and disk space usage statistics:
plesk sbin statistics --calculate-one --domain-name=example.com
-
Use the 'web_statistics_executor' utility to update web statistics:
"%plesk_bin%"\web_statistics_executor.exe --calculate-domain --domain-name=example.com --webspace-name=example.com
If the command from step 3. does not result updated web statistics, execute the below command:
"%plesk_bin%"\statistics.exe --generate-domain-webstat --domain-name=example.com
Comments
7 comments
Hi, if I recalculate the statistics, my customer are suspend after a night. Is there a job scheduled? Which job? Can I test it and, in test phase, suspend immediately a test-customer?
@Gilberto
Statistics are calculated during Daily Tasks' "ExecuteStatistics" part. You may run it separately like this (if you use Windows) or this (if you use Linux).
Customer gets suspended most likely because of exceeded limits (please check this article).
Would running "/usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=example.com" also rotate the logs, for that domain, if the logs were above the size threshold specified in the log rotation settings for the domain? Can I add a scheduled task for command to run for a domain whose logs grow very large before the daily log rotation occurs?
@Bob B
Yes, this command also runs the log rotation, as well as the statistics recalculation.
if i had email notification enabled for abo quota exceeds, will that be triggered too with that command?
Hi Johannes Fuchs,
It shoudn't as in my opinion the notification is sent by the daily task, not by the utility that calculates the statistics.
How many times a day does plesk recalculate the statistics and at what time does this routine run?
Please sign in to leave a comment.