top
. There are a bunch of long-running chrome processes that haven't been killed.{"time":"2024-05-20T03:04:41.809Z","level":"WARNING","msg":"PuppeteerCrawler:AutoscaledPool:Snapshotter: Memory is critically overloaded. Using 16268 MB of 14071 MB (116%). Consider increasing available memory.","scraper":"web","url":"https://www.natronacounty-wy.gov/845/LegalPublic-Notices","place_id":"65a603fac769fa16f6596a8f"}
page.close()
and browser.close()
are not enough especially when the script hangs). browser.pid
) and manually kill that process when you're done with the browser. You can use this library - https://www.npmjs.com/package/tree-kill. So instead of browser.close()
, do:const kill = require('tree-kill'); const browserPid = browser.pid kill(browserPid);