What a PHP worker is
A worker handles one uncached request at a time. Managed WordPress hosts sell plans with a set number of them; on a VPS it is PHP-FPM’s pm.max_children. While all workers are busy, new requests wait in a queue; if they wait too long, they time out with a 502 or 504.
| Request | Cached? | Holds a worker |
|---|---|---|
| Product and category pages (guest) | Yes | No |
| Cart, checkout, my-account | No | Yes |
?wc-ajax=* (fragments, update_checkout, checkout) | No | Yes |
/wp-json/wc/store/* (block checkout) | No | Yes |
| Admin, WP-Cron, Action Scheduler | No | Yes |
Bots on filtered or add-to-cart URLs | Often not | Yes |
Why checkout feels it first
Browsing keeps working, because product pages come from cache. Checkout cannot, so it is the first thing to slow down and the first to fail, at the exact moment traffic is highest.
A slow shipping or payment API makes it worse: every checkout holds its worker longer, the queue grows, and a promotion email can turn into a store that loads but will not take orders.
# PHP-FPM says it ran out of workers
grep "max_children" /var/log/php*-fpm.log
# WARNING: [pool www] server reached pm.max_children setting (20), consider raising it
# nginx gave up waiting
grep -E "upstream timed out|502|504" /var/log/nginx/error.log | tailPreparing for it
- Know your limit. Ask the host how many workers you have and what happens when all are busy.
- Cut uncached requests. Trim cart fragments, block bots on cart and filter URLs, and move slow tasks to Action Scheduler.
- Speed up slow calls. Timeouts on shipping and tax APIs keep a stuck API from holding workers.
- Test under load. Run checkout while the site is busy, not only when it is quiet.
- Watch during the campaign. A checkout check every few minutes tells you when slow has become failing.
Raising the worker count without the CPU and memory to run them makes every request slower. Size workers to the server, not the other way round.
Check your own store now with the free WooCommerce checkout checker: it walks the checkout in a real browser, stops before payment, and shows the step where it breaks.
Find out your checkout broke before your customers do.
Real checkout checks for Magento and WooCommerce · free plan · no card requiredWooCommerce checkout monitoring →