Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.
TypeScript apifyautomationcrawlercrawlingheadlessheadless-chromejavascriptnodejsnpmplaywrightpuppeteerscraperscrapingtypescriptweb-crawlerweb-crawlingweb-scraping
Better logging of memory overload errors
Jan Curn81c9e6fd07b7
diff --git a/src/autoscaling/snapshotter.js b/src/autoscaling/snapshotter.jsindex 59bfef24a..4df492204 100644--- a/src/autoscaling/snapshotter.js+++ b/src/autoscaling/snapshotter.js@@ -295,7 +295,7 @@ class Snapshotter {const usedPercentage = Math.round((memCurrentBytes / this.maxMemoryBytes) * 100);const toMb = bytes => Math.round(bytes / (1024 ** 2));log.warning('Memory is critically overloaded. '- + `Used ${toMb(memCurrentBytes)} MB of ${toMb(this.maxMemoryBytes)} MB (${usedPercentage}%)`);+ + `Using ${toMb(memCurrentBytes)} MB of ${toMb(this.maxMemoryBytes)} MB (${usedPercentage}%). Consider increasing the actor memory.`);this.lastLoggedCriticalMemoryOverloadAt = now;}}