Puppeteerの「シンプル」メモリリークがNode.jsコンテナを殺す理由
Puppeteerボット、10分は順調に回るのに2GBに膨れ上がってOOMキル。あるあるだろ?プロ並みプロファイルの出番だ、推測はもういい
⚡ Key Takeaways
- PuppeteerリークはChrome子プロセスに潜む——NodeヒープじゃなくRSSとexternalをまず監視
- JSONL時系列追跡とヒープDiffで不良ページみたいな保持物を特定
- ブラウザ再利用、容赦ないページclose、スリム引数でOOMの9割防ぐ
Worth sharing?
Get the best Developer Tools stories of the week in your inbox — no noise, no spam.
Originally reported by dev.to