⚙️ DevOps & Platform Eng

왜 Puppeteer의 '간단한' 메모리 누수가 Node.js 컨테이너를 죽이는가

Puppeteer 봇이 10분은 잘 돌아가다 2GB로 불어나 OOM-killed 당하는 거, 익숙하시죠? 이제 대충 짐작 말고 프로처럼 프로파일링 합시다.

로드 테스트 시간에 따른 Puppeteer RSS 메모리 증가 라인 그래프

⚡ Key Takeaways

  • Puppeteer 누수는 Node 힙이 아니라 Chrome 자식 프로세스에 숨어 있음 – RSS와 external 먼저 확인.
  • JSONL 시계열 추적과 힙 비교로 불량 페이지 같은 유지 객체 정확히 잡음.
  • 브라우저 재활용, 페이지 무자비 닫기, 가벼운 인자로 OOM 90% 막음.
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.