Stop being the product.
Become the owner.
or
sign uplog in

Puppeteer was leaking memory in prod and I just gave up…

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
#programming #technology #dev
source
earnings
3,000 mlx total
$0  total
engagement
3 views
0 reactions

0 comments