⚙️ DevOps & Platform Eng

Puppeteerの「シンプル」メモリリークがNode.jsコンテナを殺す理由

Puppeteerボット、10分は順調に回るのに2GBに膨れ上がってOOMキル。あるあるだろ?プロ並みプロファイルの出番だ、推測はもういい

Puppeteer負荷テスト中のRSSメモリ増加を示す線グラフ

⚡ Key Takeaways

  • PuppeteerリークはChrome子プロセスに潜む——NodeヒープじゃなくRSSとexternalをまず監視
  • JSONL時系列追跡とヒープDiffで不良ページみたいな保持物を特定
  • ブラウザ再利用、容赦ないページclose、スリム引数でOOMの9割防ぐ
Published by

DevTools Feed

Ship faster. Build smarter.

Worth sharing?

Get the best Developer Tools stories of the week in your inbox — no noise, no spam.

Originally reported by dev.to

Stay in the loop

The week's most important stories from DevTools Feed, delivered once a week.