Skip to content

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.

Fixed usage of ps-tree COMMAND

Jan Curne241cac097af
diff --git a/src/utils.js b/src/utils.js
index cb8081e13..bb99007f1 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -204,7 +204,7 @@ export const getMemoryInfo = async () => {
let childProcessesBytes = 0;
processes.forEach((rec) => {
// Skip the 'ps' or 'wmic' commands used by ps-tree to query the processes
- if (rec.COMM === 'ps' || rec.COMM === 'WMIC.exe') {
+ if (rec.COMMAND === 'ps' || rec.COMMAND === 'WMIC.exe') {
return;
}
const bytes = parseInt(rec.RSS, 10);