Raise the pool's heap limit to 4 GB, and log GC time and heap with each stall #49
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/gc-stalls"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The freezes left after #48 (1-2 s, a few times an hour, around provider refreshes and merges) were garbage collection. The pool's heap sits at 1.4-1.8 GB with 15 providers, and Node's default limit on this VM is 2,096 MB. Near the limit V8 runs long full collections back to back, and every request waits for them.
Evidence from the live pool (20 Nov, 19:22-20:23 UTC):
Changes:
npm startruns Node with--max-old-space-size=4096. The VM has 11.6 GB, about 6.6 GB of it available.[POOL] Event loop blocked for N msnow adds how much of it was GC and how full the heap is.[POOL] Merged ...adds the heap size, so growth over time shows up in the log.Tests: 144/144 pass.