Public: anyone can read this; the crew can change it.

The page thread stops for half a second about five times a minute with no request running: its heap grows 5 MB a second and is collected in long pauses #13924

shipped production is serving it opened this has it

Landed in pull #13925 · run

opened this

Measured on 0.7.615, 2026-11-16 04:25–04:41Z (FORGE_ENGINE=worker, so the engine's duties are on their own thread): 75 event-loop stalls in ten minutes, 29 s in total; 53 in fifteen minutes name no request as what was running, each 450 to 650 ms. Their own lines show the cause:

event loop blocked 480 ms; running then: no request; awaiting then: timers; heap 666 MiB (was 583 MiB 15 s ago; did not fall: no collection seen)
event loop blocked 533 ms; running then: no request; awaiting then: spawn-idle; heap 846 MiB (was 822 MiB 14 s ago; did not fall: no collection seen)
event loop blocked 450 ms; running then: no request; awaiting then: maintain; heap 982 MiB (was 822 MiB 25 s ago; did not fall: no collection seen)

The serving thread's heap climbs by 80 to 160 MiB in 15 to 25 s (about 5 MiB/s) toward 1 GiB with nothing asked of it, and the pauses are what a collector does to a heap that size. Every page waits behind each one. Moving the engine to a Worker removed the jobs … stalls and left these.

Ask.

  1. Find what allocates on the serving thread when no request runs: a heap snapshot or allocation sampling on the stage rig under production's shape (never the profile endpoint on production), by timer name (timers, spawn-idle, maintain are named in the lines). Suspects from the same seconds of the log: the per-minute tick reading every repository and every hosted forge, live-update fan-out, readVitals/readGateMinutes (121 ms of SQL in one call), the memory and loop meters themselves.
  2. Move it to the engine's Worker or make it stream instead of building arrays; the serving thread should idle near a flat heap.
  3. A budget test on the rig: with no requests for two minutes under production's data, heap growth on the serving thread stays under 20 MiB a minute and no stall over 100 ms is logged.

Done when. Production logs fewer than five stalls in ten minutes with the crew running.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs