Article ID: 115085, created on Nov 1, 2012, last review on Dec 20, 2015

  • Applies to:
  • Plesk Automation 11.5
  • Plesk for Linux/Unix
  • Plesk 12.0 for Windows
  • Plesk 11.5 for Windows


Disk usage for a domain/webspace is calculated incorrectly by Plesk. How do I find where the miscalculation occurred?


The normal condition for disk usage values is as follows:

In CP = in database = on the file system

Let us check the disk usage value in all three places, one by one:

In the control panel:

The disk usage is displayed on the domain's/webspace's Statistics page.

It is the value of the disk usage parameter stored in the domains table of the PSA database:

mysql> SELECT SUM(real_size) FROM domains d WHERE = <DOMAIN_ID/WEBSPACE_ID> OR d.webspace_id = <DOMAIN_ID/WEBSPACE_ID> ;
| SUM(real_size) |
|      204771328 |

Note: Replace <DOMAIN_ID/WEBSPACE_ID> with the actual domain/webspace ID.

In the database:

  1. Here, disk usage is divided into four groups of services:

    • Web (httpdocs, httpsdocs, subdomains, web_users, webapps)
    • Mail (mailboxes, maillists)
    • Databases (databases)
    • Other (anonftp, logs, domaindumps, configs, chroot)
  2. Information about the size of the four services mentioned above is stored in the “disk_usage” table of the PSA database. You may use the following query to see it:

    SELECT SUM(httpdocs) + SUM(httpsdocs) + SUM(subdomains) + SUM(web_users) + SUM(webapps) AS `web`, 0 + SUM(mailboxes) + SUM(maillists) AS `mail`, 0 + SUM(dbases) AS `databases`, SUM(anonftp) + SUM(logs) + SUM(domaindumps) + SUM(configs) + SUM(chroot) AS `other` FROM `disk_usage` AS `disk_usage` INNER JOIN `domains` AS `domains` ON = disk_usage.dom_id WHERE (dom_id = '<DOMAIN_ID/WEBSPACE_ID>') or webspace_id = <DOMAIN_ID/WEBSPACE_ID>;
    | web       | mail  | databases | other    |
    | 137875456 | 331776|    1568768| 65019904 |

    Note: Replace <DOMAIN_ID/WEBSPACE_ID> with the actual domain/webspace ID.

    But those are not the final values.

  3. Check what is included in the disk space usage calculation in the PP web interface:

    Tools & Settings (or Tools) -> Server Settings

    Modify the above queries based on what is selected, i.e., exclude + SUM(mailboxes) from the query if the Mailboxes check-box is not selected.

  4. Run the modified queries. Normally, the sum of the four values should equal the value in the control panel. If this is the case, proceed to the file system stage.

In the file system:

Here, you should manually calculate the size of the needed folders:

  • Web (httpdocs, httpsdocs, subdomains, web_users, webapps)
  • Mail (mailboxes, maillists)
  • Databases (databases)
  • Other (anonftp, logs, domaindumps, configs, chroot)


  1. Again, check what is included in the disk space usage calculation in the Plesk GUI (Tools & Settings (or Tools) -> Server Settings) and exclude the needed folders from the calculation.

  2. Files with owner’s uid < 100 and those owned by apache should not be calculated.

Search Words

plesk 11.5 statistic incorrect mail size

subscription issue

Disk Space usage is showing wrong for all the domains and reseller accounts

disk usage

Plesk is not showing/calculating the resources used of the server. Like Disk Space not showing in the panel. Please see

One of our customer's subscription shows incorrerrect mail usage in statics page. The correct usage is

Disk usage is incorrect


disk space when using web presence builder


disk usage incorrect plesk windows

How can ignoring directory on statistics

disk space misreporting


disk space oversize


mail statistics



Error en el cálculo del espacio en disco

Domain disk usage not shown corectly


Daily Statistics not working & disk space used not consistent

wrong customer disk size


disk usage incorrect plesk

Ошибка в менеджере задач для задачи Run the daily maintenance script

disk space

used disk space not callculated correctly

wrong customer disk space size


The data has not been collected yet.

Неправильно считается статистика

usage statistics not updating

Notification: Resource limits exceeded by reseller account.

disk usage wrong

plesk showing incorrect disk usage

56797cefb1efc9130f7c48a7d1db0f0c a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 ed7be2b984f9c27de1d2dc349dc19c6d 85a92ca67f2200d36506862eaa6ed6b8 a766cea0c28e23e978fa78ef81918ab8 33a70544d00d562bbc5b17762c4ed2b3 caea8340e2d186a540518d08602aa065 e0aff7830fa22f92062ee4db78133079 46a8e394d6fa13134808921036a34da8 bd7fc88cf1b01f097749ae6f87272128

Email subscription for changes to this article
Save as PDF