Back to Shared Hosting Documentation

    Resource Usage & Limits

    Monitor and optimize your hosting resource consumption for optimal performance.

    Understanding Shared Hosting Resources

    Shared hosting means your website shares server resources with other users. While this keeps costs low, it means resources are allocated fairly to ensure all sites perform well.

    Key Resources:

    • CPU: Processing power for scripts
    • Memory (RAM): Active process storage
    • Disk Space: File and database storage
    • Bandwidth: Data transfer to/from site
    • Inodes: File and directory count
    • I/O Operations: Disk read/write speed
    • Entry Processes: Concurrent PHP scripts

    Checking Resource Usage in cPanel

    Method 1: Statistics Sidebar

    Log in to cPanel and look at the left or right sidebar for quick stats: disk usage, bandwidth usage, email accounts, and databases.

    Method 2: CPU and Connection Usage

    Go to Metrics → CPU and Concurrent Connection Usage to view detailed graphs:

    • • CPU usage percentage
    • • Physical memory
    • • Virtual memory
    • • Entry processes
    • • Number of processes
    • • I/O usage

    Method 3: Resource Usage Interface

    Look for "Resource Usage" in cPanel to view comprehensive statistics, see limits and current usage, and identify resource-intensive periods.

    CPU Usage

    CPU (Central Processing Unit) is the "brain" that executes your scripts.

    What Consumes CPU:

    • • PHP scripts execution
    • • Database queries
    • • Image processing
    • • Complex calculations
    • • Search functionality

    Signs of High CPU Usage:

    • • Slow page loading
    • • Timeouts
    • • "508 Resource Limit Reached" errors
    • • Warnings from hosting provider

    Memory (RAM)

    Memory is temporary storage used while scripts run.

    What Consumes Memory:

    • • Running PHP scripts
    • • Database connections
    • • Caching systems
    • • Image manipulation
    • • Large file processing

    Memory Issues:

    • • "Allowed memory size exhausted" errors
    • • White screen of death
    • • Incomplete page loads

    Disk Space

    What Uses Disk Space:

    • • Website files (HTML, CSS, JS, images)
    • • Databases
    • • Email messages and attachments
    • • Backups
    • • Log files
    • • Temporary files

    Checking Disk Usage:

    • • cPanel sidebar shows total usage
    • • File Manager shows size of directories
    • • Disk Usage tool (Metrics) shows breakdown

    Bandwidth

    Data transferred to and from your site.

    What Consumes Bandwidth:

    • • Page views (HTML, CSS, JavaScript)
    • • Image downloads
    • • Video streaming
    • • File downloads
    • • Email (SMTP/IMAP/POP3)
    • • FTP uploads/downloads

    Checking Bandwidth:

    • • cPanel → Metrics → Bandwidth
    • • View current month's usage
    • • See breakdown by protocol
    • • View historical trends

    Inodes

    Inodes represent the number of files and folders. Each file and directory = 1 inode.

    Common Inode Limits:

    • • Entry plans: 50,000 - 100,000
    • • Standard plans: 250,000 - 500,000
    • • Reaching limit prevents creating new files

    High Inode Usage Causes:

    • • Email accounts with thousands of messages
    • • Backup files not cleaned up
    • • Cache directories with many files
    • • Log files

    Resource Limit Errors

    508 Resource Limit Reached

    508 Resource Limit Is Reached
    The website is temporarily unable to service your request as it exceeded resource limit.

    Solutions:

    • • Check Resource Usage in cPanel to identify bottleneck
    • • Optimize code and database queries
    • • Implement caching
    • • Upgrade hosting plan if consistent

    Disk Quota Exceeded

    Error: Disk quota exceeded

    Immediate Actions:

    • • Delete unnecessary files
    • • Clear email accounts
    • • Remove old backups
    • • Clean up log files

    Memory Exhausted

    Fatal error: Allowed memory size of 134217728 bytes exhausted

    Solutions:

    • • Increase PHP memory_limit (if allowed)
    • • Optimize code to use less memory
    • • Process large tasks in smaller chunks
    • • Disable memory-intensive plugins

    Optimizing Resource Usage

    Reduce CPU Usage

    • • Enable caching
    • • Optimize database queries
    • • Limit external API calls
    • • Remove unused plugins
    • • Use latest PHP version

    Reduce Memory Usage

    • • Optimize PHP code
    • • Process files in chunks
    • • Use object caching
    • • Disable debug mode

    Free Up Disk Space

    • • Clean email accounts
    • • Remove old backups
    • • Delete error logs
    • • Optimize databases
    • • Clear cache directories

    Reduce Bandwidth

    • • Enable compression (Gzip)
    • • Optimize images
    • • Use CDN
    • • Implement lazy loading
    • • Minify CSS/JS

    When to Upgrade Hosting

    Signs You've Outgrown Shared Hosting

    • Consistent 508 errors: Regularly hitting resource limits
    • Slow performance despite optimization: Site sluggish even after improvements
    • High traffic: 10,000+ daily visitors
    • Resource-intensive applications: Complex e-commerce, forums

    Upgrade Options

    • Higher-tier shared hosting: More resources, same simplicity
    • Cloud VPS: Dedicated resources, more control
    • Managed WordPress: Optimized specifically for WordPress
    • Dedicated server: Entire server for your use

    Best Practices

    • • Monitor proactively before problems occur
    • • Optimize continuously with regular maintenance
    • • Use caching to reduce server load
    • • Keep software updated
    • • Clean up regularly (logs, backups, cache)
    • • Understand your limits
    • • Plan for growth
    • • Test optimizations incrementally