Skip to content

Instantly share code, notes, and snippets.

@JJetmar
Created March 25, 2025 16:27
Show Gist options
  • Select an option

  • Save JJetmar/edff53e66f278de3e4283772d9075986 to your computer and use it in GitHub Desktop.

Select an option

Save JJetmar/edff53e66f278de3e4283772d9075986 to your computer and use it in GitHub Desktop.
Investigating memory leaks in Crawlee
import { getMemoryInfo } from 'crawlee';
setInterval(async () => {
const mem = await getMemoryInfo();
for (const [key, value] of Object.entries(mem)) {
// @ts-ignore
mem[key] = Math.round(value / 1024 / 1024); // in MB
}
console.log(mem);
}, 1_000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment