DEV Community

Discussion on: How We Fixed a Puppeteer Memory Leak in a Laravel IoT App

Collapse
 
antoniosthanasisgit profile image
Antonios Thanasis

yeah totally agree — puppeteer leaks are kind of inevitable in long-running services 😅 even with finally blocks you still end up chasing zombie processes after a while

offloading screenshots/PDFs to an API is actually a really nice approach, especially if that’s the main source of the leaks. not having to manage the browser lifecycle at all is a big win

in our case we wanted to keep everything self-contained, but yeah for a lot of setups that trade-off (less control vs more stability) is definitely worth it 👍