Question: How can I reduce CPU usage on shared hosting? Print

  • GHFS Hosting, GHFS cloud hosting, best hosting provider, shared hosting guide, VPS hosting setup, GHFS web hosting, hosting knowledge base, SSD web hosting, domain and hosting tutorials, managed hosting services, how to register a domain, DNS configuration guide, how to transfer a domain, hosting control panel tutorial, email hosting setup, SSL installation guide, DNS records explained, MX record setup, CNAME configuration, A record guide, SSL certificate troubleshooting, WordPress installation GHFS, WordPress migration guide, optimize WordPress performance, fix internal server error, FTP upload guide, enable SSH access, MySQL database tutorial, Linux server commands, secure VPS server, PHP configuration guide, website security tutorial, malware removal guide, secure hosting best practices, DDoS protection GHFS, disable root login SSH, firewall configuration VPS, VPS hosting tutorial, cloud server configuration, how to manage Linux VPS, Nginx setup GHFS, Apache configuration guide, install Docker on VPS, secure website setup, Python hosting tutorial, Node.js on VPS, MySQL optimization, Redis installation, SSL troubleshooting, hosting troubleshooting guide, hosting performance optimization, Plesk tutorial, SMTP configuration guide, cPanel tutorial, email deliverability guide, server hardening tutorial
  • 0

Answer :

High CPU usage on shared hosting can cause slow loading, timeouts, and even temporary account limits. CPU overload usually happens when your website processes too many requests or runs inefficient code.

This article explains common causes and practical ways to reduce CPU usage on GHFS Hosting.


1. Enable Full Page Caching (Most Effective)

Caching reduces the number of PHP processes running on your account.

For WordPress:

Use one of the following plugins:

  • LiteSpeed Cache (if supported)

  • WP Super Cache

  • W3 Total Cache

  • WP Rocket

Benefits:

  • Faster loading

  • Less CPU usage

  • Fewer PHP workers needed


2. Reduce the Number of Plugins (WordPress)

Every plugin adds extra load. Some consume a lot of CPU, especially:

  • Security plugins with scanning

  • Page builders

  • Backup plugins running too often

  • Analytics plugins

  • E-commerce extensions

Solution:

  • Remove unused plugins

  • Replace heavy plugins with lightweight alternatives

  • Disable auto-scanning features


3. Optimize Your Database

Heavy database queries increase CPU usage.

Reduce load by:

  • Cleaning post revisions

  • Removing spam/trash comments

  • Optimizing tables

  • Using a plugin like WP-Optimize

  • Using WordPress Toolkit optimization features in Plesk


4. Limit Heartbeat API (WordPress)

WordPress Heartbeat triggers background CPU activity.

Reduce it by using:

  • Heartbeat Control plugin

  • Or set the interval higher

This decreases admin panel CPU usage.


5. Use a CDN (Cloudflare Recommended)

A CDN offloads traffic from your hosting account.

Benefits:

  • Fewer PHP requests

  • Lower CPU usage

  • Faster global performance

Cloudflare also caches static content, reducing load further.


6. Optimize Images and Static Files

Large images cause longer processing times.

Recommended actions:

  • Compress images

  • Convert to WebP

  • Enable lazy loading

  • Use GZIP compression

  • Minify CSS and JS


7. Avoid Heavy Themes or Page Builders

Some themes require many server resources.

Solution:

  • Use lightweight themes (Astra, GeneratePress, etc.)

  • Limit the number of plugins in page builders

  • Avoid unnecessary animations or large scripts


8. Disable Unused Cron Jobs

Cron jobs that run too frequently increase CPU usage.

For WordPress:

Disable built-in cron and replace with a system cron:

Add to wp-config.php:

 
 
define('DISABLE_WP_CRON', true);

Then create a real cron job in Plesk:

https://yourdomain.com/wp-cron.php every 30 minutes.


9. Prevent Bot and Spam Traffic

Bots can consume lots of CPU.

Solutions:

  • Enable Cloudflare bot protection

  • Block IPs with .htaccess

  • Use security plugins with rate limiting

  • Disable XML-RPC if unused


10. Limit WooCommerce CPU Usage (If You Run a Store)

WooCommerce is resource-heavy.

Improve performance by:

  • Using object cache (Redis) if available

  • Reducing unnecessary WooCommerce extensions

  • Optimizing database tables

  • Limiting queries from related products, recommendations, etc.


11. Reduce External API Requests

Websites that rely heavily on external API calls often slow down under load.

Solution:

  • Cache API responses

  • Reduce the frequency of calls

  • Disable unused integrations


12. Upgrade to a Higher Plan or VPS (If Needed)

If your site is growing, shared hosting may not be enough.

Consider upgrading if:

  • You regularly hit CPU limits

  • Your traffic increases

  • You run WooCommerce or large sites

  • Your site becomes slow during peak hours

A VPS offers dedicated CPU and RAM.


13. When to Contact GHFS Hosting Support

You should contact support if:

  • CPU usage remains high after optimization

  • You need help finding the cause of CPU spikes

  • You want performance recommendations

  • You are unsure whether you need a plan upgrade

Support can analyze logs and help optimize your setup.


Was this answer helpful?

« Back