Skip to content
Diamond Sierra

PB-2101: Slow request

Paul Bunyan code PB-2101 (Warning): Slow request. What it means and what to do.

Updated · By Diamond Sierra

On this page

What it means

The server took longer than the slow-request threshold to answer.

What to do

Open the request (click its id) and read the timeline: the widest bars are where the time went.

Common causes

  • A slow database query, or many small ones (PB-2501, PB-2502).
  • A call to another service that the page waits for (PB-2401).
  • An email sent while the visitor waits (PB-2301).
  • One plugin doing heavy work on every page: building menus, resizing images, loading large settings.
  • No page cache, so every visitor waits for the full build (PB-3007).
  • The server itself: OPcache off (PB-3008), too few PHP workers, or a busy shared server.

How to find the cause

  1. Open the request from Fix first or Messages and read its timeline. The widest bar is where the time went.
  2. Look at the stages: time before plugins_loaded is spent loading plugin files; time between init and wp_loaded is plugins setting up; time after template_redirect is building the page.
  3. Open the slowest function under that bar. Its "Inside" line shows how the time splits between queries, outside calls, email and plain PHP.
  4. If wall time is far above processor time (PB-2104 shows processor time), the request was waiting: on the database, another server, or a free processor.

Details

CodeSeverityGroup
PB-2101WarningRequest