How to view and monitor File Limits (inodes), Email Usage, Disk Usage and CPU/RAM/IO Usage


Inode Usage / File Usage Information
What is an inode?
An inode is a small piece of data that every file on a server has. The number of inodes on your hosting service is equal to the number of files on there. This includes all individual files, folders, emails, images, databases and database cells, programming scripts, etc.


What are our inode limits?

Personal, Business and Reseller hosting plans have a limit of 250,000 inodes per cPanel account.

Premium hosting plans have a limit of 500,000 inodes per cPanel account.

VPS plans have an inode limit in excess of 4,000,000.

Dedicated servers do not have an inode limit as they are only limited by the total available disk space.


What happens when the inode limit is hit?

When the inode limit is hit, new files are not able to be created. This means that emails won't be able to be sent or received. Your website may also stop working. Basic HTML sites will keep working fine, but sites using WordPress and other modern development tools may need to create and delete temporary files each time a site is accessed. In this case the website won't be accessible until the amount of files are reduced. We do aim to warn all users prior to inode limits being hit, however as contact details sometimes change, we can't guarantee that we will be able to reach the owner of a cPanel account every time before this occurs.


Why are inode limits enforced?

We enforce inode limits because having too many inodes slows down a server, and also negatively affects your automated backups and malware scans. This affects all websites on that server. Imagine if a truck was designed to carry 1000KG worth of items. If it was loaded with 2000KG it would be slow, use more fuel and generally not function properly. Inodes work similiarly for servers. Fortunately, our inode limits are high enough so that far less than 0.1% of users will be affected.


How do I see how many inodes are being used?

To see the total inode usage, log into cPanel and check in the summary tab on the left of the screen. You will see a File Usage meter. This is the inode usage.

inodeusagepic01a.png



How do I reduce inode usage?

First, log into cPanel. The two main areas of inode usage are:

1) Emails: Use the Email Disk Usage tool to find which email accounts have high Numbers of Messages. This will tell you how many inodes are in that specific email account or folder. We have a guide on this below.


2) Website Files: Use the Disk Usage tool to see a breakdown of the used disk space on your hosting plan. Clicking on any of the folder names in the Disk Usage menu will take you to the File Manger. Navigate to the folder that has the files and either delete them or select many of them and compress then download them (click here for a guide).
If you need the files, you can either download them using the File Manager or use the Backup Wizard to create and download a backup of your website before deleting the files (click here for a guide). Make sure to only delete files and folders under the public_html folder as folders and files above it are system-related, and deleting them can break the cPanel account.

Note: If you accidentally delete a file, folder or email, our Personal, Business and Reseller plans include full backups every 8 hours for the last 7 days. Click here for our guide on restoring lost data.


Email Disk Usage - Find emails using large amounts of space and delete emails

The Email Disk Usage tool in cPanel is an easy way to check how much disk space each email account is using and get a breakdown of that space by folders in each email account. It also allows you to delete emails based on specific values like age or size. If you use this tool, be sure to have important emails backed up and stored safely offline so they don't risk being deleted.

Step 1 - Log into cPanel and click on the Email Disk Usage icon.

emaildiskusage01.png


Step 2 - (1) Select the Account menu to bring up the list of email accounts and then (2) select the email account you want to see the disk usage statistics for.

emaildiskusage02.png


You will see the breakdown of how many emails are in each folder.

emaildiskusage03.png


Step 3 - To delete emails, (1) click on Manage for the folder you want to delete emails from, (2) select what type of emails you want to delete then (3) click Delete Pernamently.

emaildiskusage04.png


If you want to delete emails more than 6 months old or over 10MB in size, for example, click on Custom Query then type a query string for what you want to delete before hitting Delete Permanently.

emaildiskusage05.png


Please note that the deletion of emails using custom queries falls outside of our support scope. However, if you'd like to create these queries yourself, you can find a short list of some common queries below. Feel free to modify the values to suite your needs.

larger 1M - Deletes all emails larger than 1MB in size.

savedbefore 20-May-2016 - Deletes all emails saved before 20/05/2016.

from @oldhost.com.au - Deletes all emails from email addresses that end in @oldhost.com.au.

You can find a comprehensive list of queries to use here: https://wiki2.dovecot.org/Tools/Doveadm/SearchQuery

If some emails are deleted by accident, and you're on a Personal, Business or Reseller plan, click here for a guide on restoring Emails, Files or Databases. If you have a Managed VPS or Dedicated server with backups, submit a support ticket with the details on what was deleted and we can perform a restore for you.

Disk Usage - Find Large Folders

Step 1 - Log into cPanel and click on the Disk Usage tool.

95013ef655b91c03b3d821c6cb035b804a21d9dd?t=cfefc373a1c0b92a5dc72f14945b8067


Step 2 - The main screen shows you a disk usage summary. Scroll down to get a more detailed breakdown of disk usage. You can click > to find details for subfolders, or click on the folder name to be taken to the File Manager.

aac9f3ea18212bfd2c1e8441bf24c539a3d1bc22?t=7aab54030be77d77179a5bc8dd189b84



View and understand CPU, Memory, and input/output resources in cPanel
Your cPanel web hosting service is assigned a certain amount of CPU, RAM and Bandwidth resources. These resources are metered per second. It's a good idea to check through them every so often, as they can give you an idea of why your site is slow and if you need to optimise or upgrade to a larger hosting plan.

Note: It's fine for resources to max out occasionally and have certain high spikes. These just suggest that a lot of users are visiting your site simultaneously or some periodic scripts which use many resources are being run. You should only worry when your resource usage hits its limit consistently for long periods of time, as this can result in your site slowing down heavily or becoming inaccessible.

To view these resources, log into cPanel and click on the CPU and Concurrent Connection Usage icon. Note that on some older cPanel themes the icon is named Resource Usage.

resuse01.png

The main resources we monitor are:

CPU Usage - The CPU is like the engine powering your hosting service. Everything your site does (show a page, read/write to the database, run PHP files, etc.) will use a small amount of CPU.

Physical Memory Usage- Memory is mainly used by applications and PHP files on your website. As most web builders (WordPress, Joomla, etc.) are just multiple PHP files working together, this statistic is important.

Input/Output Usage - This specifically refers to how much data you can read/write to your disk per second. Things like moving files around, writing to the database, generating images, and making backups from WordPress or other CMS can increase this.

Entry Processes - Each PHP file that's run on your site uses 1 Entry process. These run for a fraction of a second, so if the limit is 50 Entry Processes and each runs for 0.1 seconds, there won't be any issue with 50 people loading your site in the same millisecond.


Thank you for your feedback on this article.