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
- Log into Enhance
- Your dashboard shows a quick overview of resource usage
- Look for usage bars or percentages
[SCREENSHOT: Dashboard showing resource usage overview with CPU, memory, and storage indicators]
Detailed Resource Statistics
- Navigate to Websites > Your Domain
- Click Statistics or Resource Usage
- 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:
- Go to Websites
- View the resource column for each site
- 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
- Go to Account > Resource Limits or Plan Details
- See your allocated resources
- 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
- Go to Websites > Your Domain > Resources
- Set limits for:
- CPU percentage
- Memory allocation
- I/O bandwidth
- IOPS
- Number of processes
- 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
- Check Statistics > CPU
- 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:
-
Increase PHP memory limit (if within your plan):
// In wp-config.php
define('WP_MEMORY_LIMIT', '512M');
- Optimise your code/plugins
- Process large operations in chunks
- Upgrade your hosting plan
Monitoring Storage
Checking Disk Usage
- Go to Statistics > Storage
- 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:
- Open File Manager
- Sort by file size
- 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
- Go to Statistics > Bandwidth
- View daily, weekly, or monthly usage
- 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
- Go to Settings > Notifications or Alerts
- Enable alerts for:
- CPU usage above threshold
- Memory usage above threshold
- Storage approaching limit
- Bandwidth limits
- Set notification method:
- Email
- Dashboard notification
- 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
- Check CPU usage - is it maxed out?
- Check memory - are limits being hit?
- Check I/O - disk bottleneck?
- Review recent changes
- Check for traffic spikes
"503 Service Unavailable"
Usually means PHP workers are exhausted:
- Check process limits
- Increase PHP-FPM max_children
- Optimise slow PHP scripts
- Add caching
"Disk Quota Exceeded"
- Check storage usage
- Clear caches and temporary files
- Delete old backups
- Remove unused files
- Consider upgrading plan
Scripts Dying Randomly
Likely hitting memory or time limits:
- Check PHP memory_limit
- Check max_execution_time
- Review error logs for specifics
- Optimise resource-intensive operations
Resource Optimisation Tips
Quick Wins
- Install a caching plugin - Reduces CPU and database load
- Use a CDN - Offloads bandwidth and improves speed
- Optimise images - Smaller files = less storage and bandwidth
- Clean up database - Remove revisions, spam, transients
Advanced Optimisation
- Object caching - Redis or Memcached for database queries
- Opcode caching - OPcache for PHP performance
- Database indexing - Speed up slow queries
- Code profiling - Find and fix bottlenecks
Next Steps: Learn to read your logs with our Log File Analysis Guide.