Start by identifying which operation is slow and under what conditions. Compare browser measurements with PHP logs, database timings, cache results and search metrics.
Measure a specific operation
Choose a category, product page, search result and cart. Record the URL, time, sign-in state and whether the cache was warm. With enough observations, compare the median and the 95th percentile to catch short periods of overload.
Separate time to the first response from the browser's work downloading assets and running scripts. A fast HTML response with slow rendering points toward the storefront. A long wait for the first bytes calls for checking the network, intermediaries and backend.
Find the layer that is waiting
- PHP-FPM. A queue and busy worker pool show that requests are waiting. Check what occupies the workers and their memory use before increasing limits.
- Database. Correlate slow queries with locks and imports. Check if order writes or catalog updates coincide with the problem.
- Varnish and cache. Compare a public page on a hit and a miss. If fresh content appears after an extra clear, trace invalidation between layers. A Varnish PURGE example on kowal.blog, in Polish.
- OpenSearch. Compare query latency, node load and indexing, especially during imports.
- Cron and integrations. Match spikes in response time to scheduled jobs. Adobe's cron configuration guide.
Change the part supported by your measurements and repeat the same test. Magento 2 performance audit.