Why is Magento 2 slow? A diagnostic walkthrough

1 minute, 9 seconds

Why is Magento 2 slow? A diagnostic walkthrough

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.

Choose your language

English (UK) Store in English Français Deutsch Español Italiano Português Nederlands Svenska Store in English Dansk Store in English Norsk Store in English Suomi Store in English Lietuvių Store in English Latviešu Store in English Eesti Store in English Čeština Store in English Slovenčina Store in English Magyar Store in English Română Български Store in English Ελληνικά Store in English Slovenščina Store in English Hrvatski Store in English Polski English (US)