Why Is My Site Slow on Shared Hosting? Diagnose the Real Bottleneck

Why is my site

Key Takeaways

  • Measure one slow URL with curl before changing anything: a TTFB above 1.0 s on a page that should be cached points to PHP or database work, not to network speed.
  • cPanel Resource Usage reveals whether you hit account ceilings such as CPU, physical memory, and entry processes, which separates host-side throttling from slow application code.
  • Autoloaded options above 800 KB and a 128M PHP memory limit are the two most common WordPress-side bottlenecks on budget shared plans.
  • Change one variable, re-test the same URL, and log the numbers, so your support ticket carries evidence instead of a vague complaint.

Start With a Baseline, Not a Guess

Speed complaints stay unsolved when they stay vague. A workable baseline is one URL, one test location, three runs, and a timestamp.

Define the Slow Page and the Slow Request

Pick two URLs: the homepage and the page you actually care about, such as a product page or a long article. Test them logged out, from a connection outside your office, at the same hour across two days. Record DNS lookup, TTFB (time to first byte), and total load for each run.

The curl snippet below repeats a request three times and prints those timings in seconds.

# Baseline one URL: DNS, connect, TTFB and total time for three runs
URL="https://example.com/slow-page/"
for i in 1 2 3; do
  curl -s -o /dev/null \
    -w "run=$i dns=%{time_namelookup}s connect=%{time_connect}s ttfb=%{time_starttransfer}s total=%{time_total}s bytes=%{size_download}\n" \
    -H "Cache-Control: no-cache" "$URL"
done

A TTFB above 1.0 s on a page that should be cached means the server spends time in PHP or MySQL, while a fast TTFB with a slow total usually means oversized images, web fonts, or render-blocking scripts.

Separate Hosting-Side Limits From Application-Side Problems

Before touching plugins, classify the symptom. The two failure families need opposite fixes: hosting limits need fewer workers or a bigger plan, while application problems respond to query, plugin, or cache work.

SymptomLikely hosting sideLikely application side
A plain .html file also takes 2 s to respondYesNo
Static file loads in 200 ms, WordPress page in 2 sNoYes
CPU or entry processes hit 100% at the same minute dailyYes, or a cron-triggered pluginPossible
Fast for guests, slow only for logged-in usersNoYes, cache bypass plus queries
Slow only between 09:00 and 11:00 CETYes, node contention or I/OUnlikely

Read cPanel Resource Usage Before Changing Anything

The Resource Usage page (CloudLinux LVE) is the cheapest diagnostic available on a shared account. Open Metrics > Resource Usage and compare Snapshot with Current Usage.

Check CPU, Memory, and Entry Processes

Four numbers matter. CPU shows percentage of your allocation. PMEM is physical memory. EP (entry processes) counts concurrent PHP requests, so a cap of 20 means request 21 waits or fails with a 508 error. I/O shows disk throughput and faults.

A typical small business plan might allow 100% CPU, 1 GB PMEM, and 20 EP. If usage graphs sit near those ceilings for more than a few minutes per hour, the account is throttled and no plugin will fix it.

I/O is the limit budget hosts advertise least. NVMe storage changes the picture because random reads dominate WordPress and MySQL work:

Metric (typical, 4K random)SATA SSDNVMe SSD
Random read IOPS90,000 to 100,000400,000 to 700,000
Read latency0.10 to 0.20 ms0.02 to 0.08 ms
Sequential readaround 550 MB/s2,000 to 7,000 MB/s
Practical WordPress effectfine for low trafficfewer wait states on uncached PHP and database queries

Treat those as ranges, because controller quality and plan tier change real results. If a host publishes neither storage type nor renewal price, comparison becomes guesswork, and NVMe SSD shared hosting plans that list storage and resource ceilings next to the price make the decision measurable.

Identify Traffic Spikes, Cron Jobs, and PHP Workers

Correlate the usage graph with events. A newsletter send at 10:00 explains an EP spike at 10:02. A plugin running every five minutes explains steady CPU pressure, which you can confirm with wp cron event list over SSH or WP-CLI.

PHP-FPM worker counts are host-side settings. Ask support how many workers your account can use, because it is often lower than your entry process cap and becomes the real concurrency limit during traffic spikes.

Audit PHP Memory Limit and Execution Limits

Compare PHP Memory Limit With Actual Plugin Demand

Most shared stacks default to 128M. WooCommerce stores, page builders, and import tools commonly need 256M to 512M. Memory exhaustion shows up as blank pages or 500 errors, but repeated pressure also slows requests while PHP retries work.

The command below reads the effective limits, then creates a temporary phpinfo file so you can confirm the web value.

# Read effective PHP limits; the web SAPI often differs from CLI
php -i | grep -E "memory_limit|max_execution_time|max_input_time|post_max_size|upload_max_filesize"
# Check the FPM value the site actually serves, then delete this file
echo '<?php phpinfo(INFO_GENERAL | INFO_CONFIGURATION);' > ~/public_html/phpinfo-check.php

Compare the two outputs: a 512M CLI limit with a 128M web limit explains why a plugin passes in WP-CLI but fails during a real page load.

Review Max Execution Time, Input Time, and Post Size

Defaults of 30 s for max_execution_time і 8M for post_max_size are common. A 504 gateway timeout after exactly 30 s is a limit symptom, not a slow page. Large product imports need post_max_size і upload_max_filesize raised together, usually through MultiPHP INI Editor, and only after checking that your plan allows the change.

Measure WordPress Database Overhead

Find Slow Queries and Autoloaded Options

Query Monitor, installed temporarily, lists every query and flags duplicates. Autoloaded options matter more on shared hosting because they load on every request. This query shows the largest offenders.

# Largest autoloaded options; WordPress 6.6+ stores 'on' instead of 'yes'
mysql -u USER -p DBNAME -e "
SELECT option_name, LENGTH(option_value) AS bytes
FROM wp_options
WHERE autoload IN ('yes','on')
ORDER BY bytes DESC
LIMIT 15;"

Total autoloaded size above 800 KB is a red flag, and 300 to 500 KB is a healthier target. Adjust the wp_ prefix if your install uses a custom one.

Plan WordPress Database Optimization Without Breaking the Site

Back up first, then test on staging where possible. Safe steps include deleting expired transients, limiting revisions with define('WP_POST_REVISIONS', 5);, and removing orphaned postmeta left by deleted plugins. Skip aggressive “one-click” cleaners on a live store, since they often drop data that themes still reference.

When Query Monitor shows MySQL consuming most of the TTFB, server tuning matters more than plugin tweaks, and high-performance WordPress hosting with NVMe SSD storage becomes a reasonable comparison point against fighting a 128M limit.

Test Hosting Cache Plugin Behavior

Confirm Page Cache, Object Cache, and Browser Cache Are Working

Each layer solves a different problem. A HIT on one does not prove the others work.

LayerWhat it storesHow to testFailure symptom
Page cachefull HTML for guestscurl headers, look for HIT and AgeTTFB identical to uncached
Object cacherepeated database query resultsQuery Monitor, Redis statssame query runs 40 times
Browser cacheCSS, JS, imagesCache-Control headersrepeat visits stay slow
Edge or CDNHTML and static assetsx-cache або cf-cache-statusHIT ratio below 70%

This header check shows whether anonymous visitors get cached HTML and whether logged-in cookies correctly bypass it.

# Check cache status for guests, then for a logged-in cookie
curl -sI https://example.com/ | grep -iE "x-cache|x-litespeed-cache|cf-cache-status|age|cache-control"
curl -sI -H "Cookie: wordpress_logged_in_example=1" https://example.com/ | grep -iE "x-cache|age|cache-control"

The first call should return a HIT with a rising Age header, while the cookie call should bypass cache, which is correct for members but costly if it also happens to guests.

Detect Cache Misses Caused by Cookies, Logins, and Dynamic Pages

WooCommerce cart fragments, nonce-bearing contact forms, and plugins that set cookies on every visit can silently disable page cache. Check exclusion lists for cart, checkout, and my-account pages, then confirm that a normal article still returns a HIT. Dynamic pages should stay uncached by design, so do not “fix” a miss on checkout.

Follow a Repeatable Triage Sequence

Fix the Largest Bottleneck First

Work in this order, because each step is cheaper than the next and rules out a whole category:

  1. Baseline one URL with curl.
  2. Read cPanel Resource Usage for the same minute.
  3. Compare PHP limits with plugin demand.
  4. Profile queries and autoloaded options.
  5. Verify cache HITs for guests.
  6. Consider a plan upgrade only after steps 1 to 5.

Re-Test After Each Change and Record Results

Keep a log. Without before-and-after numbers, it is impossible to know which change helped.

ChangeTTFB beforeTTFB afterCPU peakVerdict
Disabled backup plugin2.4 s1.1 s80%keep off
Autoload trimmed 1.2 MB to 480 KB1.1 s0.9 s62%keep
Enabled page cache0.9 s0.3 s30%keep
Raised memory 128M to 256M0.3 s0.3 s28%no effect

Know When to Open a Hosting Ticket

Attach cPanel Metrics, PHP Limits, Plugin Logs, and Timestamps

Send evidence, not adjectives. Include the exact URL, three curl runs with UTC timestamps, a Resource Usage screenshot, phpinfo values, Query Monitor slow queries, and a list of changes already tested. Submit it through the contact page so it lands in the queue with your account details attached.

Ask for Specific Evidence About Shared Hosting Limits

Specific questions get specific answers. Ask whether your account was throttled between 14:00 and 14:20 UTC, what your EP and PMEM caps are, which processes used the most CPU, whether disk I/O is capped, and whether another account on the node saturated storage. A host that publishes limits up front shortens this exchange, and one that answers with log excerpts earns trust.

Further Reading