SERVER1 / Search

What are you looking for?

Search services, pages and articles. Results appear after 2 characters.

View all articles
SEO & Performance

How to diagnose a slow site after a hosting move

Compare the same action before and after a hosting move, separate server delays from browser delays, and decide when it is safe to reopen checkout.

SERVER1.GE8 min read
A dial above two servers beside the article title.

What improved, and what the case cannot tell us

After a website move, the owner felt the site was slower and asked for more RAM as a test. Support reported work on PHP configuration, SQL connectivity and resource settings, including memory and CPU. The owner then reported that performance was noticeably better. That feedback confirms that the owner noticed an improvement, not how large it was or whether the site returned to its pre-move performance.

No timings, individual parameter changes or root cause were recorded. The request for more RAM is not evidence of memory pressure, and the record does not establish that RAM was added. Several areas were addressed, so the result cannot be assigned to any one of them. If your site feels slower after a move, start by finding where the extra wait occurs rather than choosing a larger plan.

Build a fair baseline around one safe action

Choose one action that reflects what a visitor does and that you can repeat safely on both the source and destination. Opening the checkout review page with a test account and a prepared cart is useful only after you verify that opening it does not create an order, reserve stock or initiate payment. Check for a non-sensitive marker of the expected page. An HTTP 200 response could still be a login screen or an unexpected page.

Match the route, application and data versions, account and cart state, browser and server cache state, probe region, time window and traffic mix. Keep cold and warm runs separate. When practical, alternate a modest number of checks between the two systems at similar load. Use an approved preview route only if it preserves normal hostname, TLS, proxy, cache and session behavior. If the source is gone and no comparable measurements exist, label the exercise destination-only and assess it against an agreed target.

Two people compare charts on laptops at the same desk.
Compare the same page under similar conditions on the old and new hosting environments.AI-generated editorial illustration · SERVER1.GE

Separate a late first byte from a slow browser

For each HTTPS check, record the time to DNS lookup completion, connection, TLS completion, first byte and transfer completion. Also record the HTTP status code, curl exit status and whether the response contains the expected page marker. The timing fields are cumulative from the start of the request. To measure an interval, subtract two points in the same trace rather than adding the columns. A nonzero curl exit status alone does not identify the bottleneck.

In a separate browser trace, look at HTML and asset downloads, rendering and when the page is usable. If first byte is normal but the page becomes usable late, the browser trace can show whether downloads or rendering deserve attention before server resources do. If first byte is late under matched conditions, align slow requests with server evidence. Do not subtract a median from the HTTPS checks from a median in the browser runs and call the difference rendering time.

Ask hosting support to inspect private samples from the PHP-FPM pool that handled the request. Queue length counts requests waiting for a worker, not how long your request waited. Match samples to request timestamps and traffic mix. If private traces show time from request dispatch to worker start, check whether that interval grows on slow requests. Ask the application team to separate database connection acquisition from aggregate query time: slow database calls can keep workers busy and build a queue. If MySQL is in use, an empty slow query log does not rule out queries below its configured threshold or delays acquiring a connection.

Work through a comparison before calling go or hold

The table below is a fictional checkout exercise. None of its timings were measured on the customer’s service. The test opens the order review without submitting it. Both environments use the same account, prepared cart and cache state. The team agrees on separate acceptance limits for the first byte and for the moment the order summary appears and its controls respond. A valid HTTP response alone does not establish either condition.

Read the three rows independently. Every request returns the expected content. The destination still exceeds the first-byte ceiling, and its controls become usable later than the browser ceiling permits. The action for this exercise is to keep checkout closed to writes. A decision based only on response status would have opened a checkout that looked healthy to the monitor and slow to a buyer.

In the example traces, DNS, connection setup and TLS behave similarly on both sides. The difference appears before the first byte, while time spent finishing the transfer and waiting on the database is comparable. The destination shows a queue in the relevant PHP-FPM pool during slow requests. Inspect what the busy workers were doing. They might be waiting on an external service, so increasing the worker count without checking available memory could simply move the bottleneck elsewhere.

Illustrative checkout review worksheet: the destination misses both agreed timing limits.
CheckSourceDestinationDestination requirement
Expected page, HTTP 200, curl exit status 05 of 5 checks5 of 5 checksAll checks pass
Median time to first byte300 ms750 ms400 ms or less
Median time until usable840 ms1,290 ms990 ms or less

Change one setting you can put back

The support case involved work in several areas. For your next test, use an approved destination-like copy with no live writes or payment callbacks. If queues recur and CPU, memory and the database have headroom, ask hosting support to record a baseline, then change only the relevant PHP-FPM worker cap. Replay the same modest traffic with equivalent independent test sessions and the same cache warm-up. Look for repeatable drops in first-byte time and worker wait. Stop and restore the cap if errors, memory pressure or database wait breach agreed limits. Restore it afterward and rerun to see whether the improvement follows the setting.

If traces show that workers are already tied up on database calls, adding workers can increase database contention rather than clear the queue. Investigate connection acquisition or query time first. Test RAM alone only when you have evidence of memory pressure and can change the allocation without changing CPU or other limits. A move to a plan that changes several limits is a package comparison, not a RAM test.

Protect checkout and other writes during cutover

Before the final sync, put checkout and other write paths into maintenance and pause jobs that could still modify the source. Assign a cutover lead to make sure only one site copy can accept writes. Agree in advance how payment callbacks will be preserved, such as through an approved durable queue or a retry procedure verified with the payment provider. Do not acknowledge a callback as received unless it has been processed or safely retained. While visitors still reach the old endpoint, keep writes there disabled or route those actions to the active service through an approved path.

Before reopening checkout, have the cutover lead and the teams responsible for orders and payments reconcile the destination against the final source state and events received during the pause. Account for orders, payments, stock changes and pending jobs. Make sure replaying a callback or job cannot apply the same change twice. If rollback is needed after the destination has accepted writes, pause writes there and reconcile its newer transactions and pending events under the agreed rollback procedure before redirecting traffic. Keep writes closed if any records are missing, duplicated or unexplained.

If your migration target is shared hosting, compare the web hosting plans with the resource demand you measured for your application before choosing the destination.

  • Name the person who makes the go or hold call and the hosting contact who can act on it.
  • Verify that the backup can be restored and rehearse the final sync before the maintenance window.
  • Record the sync checkpoint and identify which records and pending events must be reconciled before checkout reopens.

Verify recovery and choose the right follow-up

Agree on timing and error limits before the move. Proceed only when repeated matched checks return the expected result within the first-byte, usable-page and error limits, and the write-integrity checks pass. Hold for unexpected content, timeouts, sustained queues, missed limits or unexplained order or payment discrepancies. After reopening, repeat the same action under comparable traffic and reopen the investigation if any hold condition returns. Pause writes if order or payment integrity is in doubt. Record the owner's experience separately from the timings and write checks. Without a fair source baseline, report whether the destination meets the acceptance target, not whether it recovered to the old level.

For a second, fictional outcome, suppose the first byte now meets the agreed limit but the page still becomes usable too late. Worker wait no longer recurs, and a browser trace shows late script execution. Keep checkout closed to new writes and investigate the script delay with the frontend team. Repeat both acceptance checks and verify order integrity before reopening. In another run, repeated overlap with worker, CPU, memory or storage contention would instead justify escalation to the hosting team. Long database connection or query waits belong with the application and database teams.

If delays track resource pressure, use the VPS guide to diagnosing slow requests to investigate CPU and disk I/O before changing plans.

Download the exercise

SERVER1.GE

Not sure which infrastructure fits this workload?

Tell us what you run, your expected traffic and current setup. We will help you narrow down the right option.