Knowledge Base

Resource Monitoring and Limits in Enhance

Ever wondered why your website suddenly slowed down? Or why that script just stops mid-execution? Understanding resource monitoring is your ticket to a smooth-running website.

Understanding Server Resources

Your hosting account has access to several key resources:

Resource What It Is Why It Matters
CPU Processing power Complex calculations, PHP execution
Memory (RAM) Working space Running applications, caching
Storage Disk space Files, databases, emails
I/O Disk read/write speed Loading files, database queries
IOPS I/O operations per second Database-heavy operations
Bandwidth Data transfer Visitors downloading your content
Processes Running programs PHP workers, cron jobs

Viewing Resource Usage

Dashboard Overview

  1. Log into Enhance
  2. Your dashboard shows a quick overview of resource usage
  3. Look for usage bars or percentages

[SCREENSHOT: Dashboard showing resource usage overview with CPU, memory, and storage indicators]

Detailed Resource Statistics

  1. Navigate to Websites > Your Domain
  2. Click Statistics or Resource Usage
  3. View detailed breakdowns:
    • Current usage
    • Historical graphs
    • Peak usage times

[SCREENSHOT: Detailed resource statistics page with graphs showing usage over time]

Per-Website Usage

Since Enhance isolates each website, you can see exactly which site is using what:

  1. Go to Websites
  2. View the resource column for each site
  3. Click a site for detailed breakdown

Understanding Resource Limits

Enhance enforces "hard limits" - strict boundaries that protect server stability and ensure fair usage.

What Happens When You Hit a Limit?

Resource What Happens
CPU Processes are throttled (slowed down)
Memory Scripts are killed with "out of memory" error
Storage New files can't be saved, uploads fail
I/O Read/write operations queue up (slowdown)
IOPS Similar to I/O - operations queue
Processes New processes can't start ("fork failed")

Viewing Your Limits

  1. Go to Account > Resource Limits or Plan Details
  2. See your allocated resources
  3. Compare current usage to limits

[SCREENSHOT: Resource limits panel showing allocation vs usage for each resource type]

Setting Website Resource Limits

As an administrator, you can set per-website limits:

Configuring Limits

  1. Go to Websites > Your Domain > Resources
  2. Set limits for:
    • CPU percentage
    • Memory allocation
    • I/O bandwidth
    • IOPS
    • Number of processes
  3. Save changes

[SCREENSHOT: Per-website resource limit configuration form]

Recommended Limits by Website Type

Website Type CPU Memory I/O
Simple blog 10% 256MB Low
Business site 20% 512MB Medium
WooCommerce 30% 1GB High
High-traffic 50%+ 2GB+ High

Monitoring CPU Usage

What Uses CPU?

  • PHP script execution
  • Database queries
  • Image processing
  • Compression/decompression
  • Complex calculations

Identifying High CPU Usage

  1. Check Statistics > CPU
  2. Look for spikes correlating with:
    • Specific times (cron jobs?)
    • Traffic patterns
    • Recent changes

[SCREENSHOT: CPU usage graph showing usage patterns over 24 hours]

Reducing CPU Usage

  • Enable caching (page cache, object cache)
  • Optimise database queries
  • Use a CDN for static files
  • Reduce plugin bloat
  • Optimise images before upload

Monitoring Memory Usage

What Uses Memory?

  • PHP processes
  • Database connections
  • Caching systems
  • Large file operations
  • Simultaneous visitors

"Allowed Memory Size Exhausted" Error

This means your script tried to use more memory than allowed:

Fatal error: Allowed memory size of 268435456 bytes exhausted

Solutions:

  1. Increase PHP memory limit (if within your plan):

    // In wp-config.php
    define('WP_MEMORY_LIMIT', '512M');
  2. Optimise your code/plugins
  3. Process large operations in chunks
  4. Upgrade your hosting plan

Monitoring Storage

Checking Disk Usage

  1. Go to Statistics > Storage
  2. See breakdown by:
    • Website files
    • Databases
    • Email
    • Backups
    • Logs

[SCREENSHOT: Storage breakdown showing usage by category with visual chart]

Finding Large Files

Via File Manager:

  1. Open File Manager
  2. Sort by file size
  3. Look for unexpectedly large files

Via SSH:

# Find files over 100MB
find /home/user/public_html -size +100M

# Show directory sizes
du -sh /home/user/public_html/*

# Top 20 largest files
find /home/user -type f -exec du -h {} + | sort -rh | head -20

Reducing Storage Usage

  • Delete old backups (keep only recent ones)
  • Clear cache directories
  • Remove unused themes and plugins
  • Compress or remove old log files
  • Optimise database tables
  • Delete spam comments and post revisions

Monitoring Bandwidth

What Uses Bandwidth?

Every time someone visits your site:

  • HTML pages are downloaded
  • Images are loaded
  • CSS and JavaScript files transfer
  • Videos stream
  • Files are downloaded

Checking Bandwidth Usage

  1. Go to Statistics > Bandwidth
  2. View daily, weekly, or monthly usage
  3. See breakdown by website

[SCREENSHOT: Bandwidth usage graph showing daily data transfer]

Reducing Bandwidth Usage

  • Use a CDN - Offloads static file delivery
  • Optimise images - Compress before uploading
  • Enable Gzip - Compresses text-based files
  • Browser caching - Repeat visitors don't re-download
  • Lazy loading - Images load only when visible
  • Hotlink protection - Stop others embedding your images

Setting Up Alerts

Don't wait until things break - set up notifications!

Configuring Resource Alerts

  1. Go to Settings > Notifications or Alerts
  2. Enable alerts for:
    • CPU usage above threshold
    • Memory usage above threshold
    • Storage approaching limit
    • Bandwidth limits
  3. Set notification method:
    • Email
    • Dashboard notification
  4. Save settings

[SCREENSHOT: Alert configuration panel with threshold settings]

Recommended Alert Thresholds

Resource Warning Critical
CPU 70% 90%
Memory 75% 90%
Storage 80% 95%
Bandwidth 80% 95%

Troubleshooting Resource Issues

Website Running Slowly

  1. Check CPU usage - is it maxed out?
  2. Check memory - are limits being hit?
  3. Check I/O - disk bottleneck?
  4. Review recent changes
  5. Check for traffic spikes

"503 Service Unavailable"

Usually means PHP workers are exhausted:

  1. Check process limits
  2. Increase PHP-FPM max_children
  3. Optimise slow PHP scripts
  4. Add caching

"Disk Quota Exceeded"

  1. Check storage usage
  2. Clear caches and temporary files
  3. Delete old backups
  4. Remove unused files
  5. Consider upgrading plan

Scripts Dying Randomly

Likely hitting memory or time limits:

  1. Check PHP memory_limit
  2. Check max_execution_time
  3. Review error logs for specifics
  4. Optimise resource-intensive operations

Resource Optimisation Tips

Quick Wins

  1. Install a caching plugin - Reduces CPU and database load
  2. Use a CDN - Offloads bandwidth and improves speed
  3. Optimise images - Smaller files = less storage and bandwidth
  4. Clean up database - Remove revisions, spam, transients

Advanced Optimisation

  1. Object caching - Redis or Memcached for database queries
  2. Opcode caching - OPcache for PHP performance
  3. Database indexing - Speed up slow queries
  4. Code profiling - Find and fix bottlenecks

Next Steps: Learn to read your logs with our Log File Analysis Guide.

Please rate this article to help us improve our Knowledge Base.

0 0