Puppeteer RAM leaks
Hey! Hope y'all have a good day:)
My problem: after few hundred of fetches via Puppeteer I think I've had few RAM leaks, which will have to be fixed by me of course. Problem is, after deletion of latest deployment I still see constant 1.8gb ram used (same express app eats up to 100mb in another project I was wondering, is there a way to restart the machine or clear the ram somehow? Or should I just re-add the repo to my project? Thanks in advance!
8 Replies
Project ID:
74cf85fb-01ae-4225-a39c-a363fa9a80ae
74cf85fb-01ae-4225-a39c-a363fa9a80ae
Note: I'm not a pro, might miss some stuff
What are you using puppeteer for?
Think its best to redeploy or restart service if railway has it
Regarding leaks make sure to close old instances or use manager
If they do have restart look for three dots menu usually it hides there
Web Scraping, ~2k jobs
https://devforth.io/blog/how-to-simply-workaround-ram-leaking-libraries-like-puppeteer-universal-way-to-fix-ram-leaks-once-and-forever/
Seems like it's famous problem
devforth.io
How to simply workaround RAM-leaking libraries like Puppeteer. Univ...
Learn how to workaround any kinds of leaks in 3rd-party libraries. Get ready-to-use leak-fixer code for NodeJS.
thank you <3
Solution
Web scraping is against Railway TOS
Oh well
Perhaps it's time to close this issue then- ππ»ββοΈ
Thanks @pandas@Fragly β€οΈ βπ»