Checking Your Disk Space Usage
Monitoring your disk space usage is an important part of managing your dotCanada.com hosting account. This guide explains how to check how much disk space you're using, identify what's taking up space, and manage your storage effectively.
Why Monitor Disk Space?
- Prevent service interruptions: Running out of disk space can cause your website to stop functioning properly
- Optimize performance: A nearly full disk can slow down your website and database operations
- Plan for growth: Track usage trends to determine if you need to upgrade your hosting plan
- Identify issues: Unexpected increases in disk usage may indicate problems like log file bloat or malware
Checking Overall Disk Space Usage
Method 1: Using cPanel Dashboard
- Log in to your cPanel account at https://{hostname}.mysecureservers.com:2087
- On the main cPanel dashboard, you'll find a section displaying your disk space usage
- This is typically shown as:
- A graphical bar showing used vs. available space
- Text displaying "X MB / Y MB" (used amount / total amount)
- A percentage of usage
Method 2: Using Disk Space Usage Tool
- Log in to cPanel
- In the search box at the top, type "Disk Usage" or navigate to the FILES section
- Click on Disk Usage
- This page provides a detailed breakdown of your disk space usage by directory
- You can click on directory names to drill down further
Checking Detailed Disk Space Breakdown
File Manager allows you to see the size of individual files and folders:
- Log in to cPanel
- Click on File Manager
- Navigate to the directory you want to check
- The size of each file is displayed in the "Size" column
- For folders, right-click and select "Show File Size" to see the total size
- Alternatively, select a folder and click the "File Size" button in the top toolbar
Note: Calculating folder sizes for large directories may take some time.
To check how much space your databases are using:
- Log in to cPanel
- Click on MySQL Databases or MySQL Database Wizard
- Scroll down to the "Current Databases" section
- The size of each database is displayed next to its name
- For more detailed information:
- Click on phpMyAdmin
- Select your database from the left sidebar
- Click on the "Structure" tab to see the size of individual tables
Email can take up significant disk space. To check:
- Log in to cPanel
- Click on Email Accounts
- This page shows the disk usage for each email account
- For a more detailed analysis:
- Click on Email Disk Usage under the "Email" section
- This shows a breakdown of space used by each email account and folder
Backups can consume a lot of space and are often overlooked:
- Log in to cPanel
- Open File Manager
- Look for folders named "backup" or files with extensions like .zip, .tar, .gz, or .bak
- Check the size of these files/folders as described in the File Manager section
- Also check for cPanel-generated backups:
- Go to Backup in cPanel
- Any backups stored on your account will be listed here
Understanding What's Taking Up Space
Common Space-Consuming Items
- Media files: Images, videos, PDFs, and other downloadable content
- Databases: Can grow large with content, logs, and redundant data
- Email: Mailboxes with many messages and large attachments
- Log files: Web server, error, and access logs
- Backups: Automated or manual backups of your website or databases
- Old themes and plugins: Inactive or multiple versions
- Caches: Various caching data that may accumulate over time
Tips for Managing Disk Space
Clearing Unnecessary Files
- Remove old backups:
- Delete outdated backups, keeping only the most recent ones
- Consider moving backups off-server to external storage
- Clean up logs:
- Navigate to the "logs" directory in File Manager
- Delete or archive old log files
- Configure log rotation if available
- Remove temporary files:
- Check for "tmp" directories in your account
- Clear browser cache folders in your CMS
- Remove installation files for themes/plugins after use
- Clean up email accounts:
- Delete or archive old emails, especially those with attachments
- Empty trash folders in each email account
- Delete unwanted email accounts
Optimizing Media Files
- Compress images:
- Use tools like TinyPNG, ImageOptim, or WordPress plugins like Smush
- Convert images to appropriate formats (JPEG for photos, PNG for graphics with transparency)
- Use appropriate resolution (don't upload 4000px images for 400px displays)
- Host videos externally:
- Use YouTube, Vimeo, or other video hosting services
- Embed videos on your site rather than hosting the files
- Use CDNs:
- Consider using a Content Delivery Network to offload media
- Services like Cloudflare can cache and serve your images and other static content
Database Optimization
- Clean up post revisions:
- WordPress and other CMSs store multiple revisions of each post
- Use plugins like WP-Sweep or WP-Optimize to clean these up
- Remove spam comments:
- Delete spam and trashed comments permanently
- Optimize database tables:
- Use phpMyAdmin to optimize tables
- Select all tables, then choose "Optimize Table" from the dropdown
- Clean up transients:
- Remove expired transient options from WordPress
- Use plugins or manual database cleanup
Setting Up Disk Space Alerts
To proactively monitor your disk space:
- Log in to cPanel
- Click on Resource Usage or Metrics
- Look for options to set up email notifications for disk space thresholds
- Set alerts to trigger when your usage reaches 80-85% of your quota
- Alternatively, consider third-party monitoring services
Upgrading Your Disk Space
If you consistently need more space despite optimization efforts:
- Log in to your dotCanada.com client area at https://clients.dotCanada.com/login
- Navigate to your hosting package
- Look for upgrade options to increase your disk space allocation
- Alternatively, contact our support team to discuss custom upgrade options
Troubleshooting Unexpected Disk Space Issues
Sudden Increase in Usage
If you notice a sudden spike in disk usage:
- Check for malware: Malicious scripts can generate large files
- Look for runaway logs: Check error logs for rapid growth
- Inspect recent uploads: See if any large files were recently added
- Check for failed backups: Incomplete backups may consume space
- Look for core dumps: Failed processes may create large dump files
Hidden Files
Some space-consuming files may be hidden:
- In File Manager, click on Settings in the top-right corner
- Check the option to "Show Hidden Files (dotfiles)"
- Click Save
- Look for files and directories that start with a dot (.)
- Large hidden files like .htaccess.bak or .user.ini can consume space
If you need assistance with managing your disk space or have questions about upgrading your storage allocation, please contact our support team.