▲ 80 r/webdev
Puppeteer was leaking memory in prod and I just gave up
ran puppeteer in prod for 18 months generating invoices. around 15 concurrent requests it starts leaking, 200-500mb per chromium instance
tried pooling pages, killing zombies on a cron, relaunching the browser every N pages. each fix lasted maybe a week then memory climbing again at 3am
ended up spending more time on chromium babysitting than building features. added a grafana dashboard just to watch puppeteer's RAM
my coworker asked why i dont just use an api and at this point i couldnt argue. 18 months of telling myself id fix it next sprint
anyone actually running headless chrome at scale without it becoming a second job
u/TinyStar44_ — 21 hours ago