How to identify and reduce high disk usage on shared hosting accounts

This article discusses high disk usage on shared hosting accounts, including:

  • Common file locations for high disk usage.
  • How to identify high disk usage locations.
  • How to reduce high disk usage.

Common high disk usage locations

High disk usage can occur anywhere in a hosting account. However, there are some common places to check:

  • Databases: Databases can grow to very large sizes, particularly when they are part of a web application like WordPress or Magento. For information about how to optimize various web applications, please see these articles.
  • Backups: Backups are another common cause of high disk usage. Rotating backups and transferring them to another location (not on your account) is a good way to help reduce disk usage.
  • Media files: MP3, video, and other types of multimedia files can take up very large amounts of disk space.
  • Email messages: Email messages can accumulate for years, with no one ever cleaning them out. Consider downloading and archiving old messages so you can delete them on the server and free up disk space.
  • Cron jobs: Automated scripts and cron jobs can quickly use up disk space. For example, consider a recursive backup, such as a script that creates a backup of a backup. This type of runaway process will quickly create files of increasing size and fill the disk.
If your web site storage needs are increasing, please contact our sales department at https://my.a2hosting.com to discuss upgrade options. Common upgrades for shared hosting accounts are a managed VPS or a dedicated server. These packages offer dedicated resources that can streamline your site's performance. They also include full management and the cPanel control panel.

Viewing and identifying high disk usage locations

Viewing and identifying high disk usage locations is easy with the Disk Usage tool in cPanel. The Disk Usage tool calculates how much disk space your account's directories and databases are using. You can also sort directories by disk space usage, which makes it easy to find high disk usage locations. For detailed information about how to use the Disk Usage tool in cPanel, please see this article.

You can also determine high disk usage locations using SSH (Secure Shell) and the command prompt. For information about how to do this, please see this article.

Reducing high disk usage

After you have identified locations of high disk usage, you are ready to reclaim disk space by cleaning out unneeded files and directories. The cPanel File Manager makes this easy to do:

  1. Log in to cPanel.
    If you do not know how to log in to your cPanel account, please see this article.
  2. On the Tools page, in the Files section, click File Manager:

    cPanel - File Manager icon (Jupiter theme)

  3. In the left sidebar, click the name of the directory that you want to open. The directory's contents appear in the right pane:

    cPanel - File Manager - Select folder

  4. To delete a file, follow these steps:

    • Right-click the file, and then click Delete:

      cPanel - File Manager - Select file to delete

    • Select the Skip the trash and permanently delete the files check box, and then click Confirm:

      cPanel - File Manager - Confirm file to delete

  5. To delete an entire directory, follow these steps:

    • Right-click the directory, and then click Delete:

      cPanel - File Manager - Select directory to delete

    • Select the Skip the trash and permanently delete the files check box, and then click Confirm:

      cPanel - File Manager - Confirm directory to delete

For more information about how to use the File Manager in cPanel, please see these articles.

Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.

We use cookies to personalize the website for you and to analyze the use of our website. You consent to this by clicking on "I consent" or by continuing your use of this website. Further information about cookies can be found in our Privacy Policy.