Created
March 25, 2025 16:27
-
-
Save JJetmar/edff53e66f278de3e4283772d9075986 to your computer and use it in GitHub Desktop.
Investigating memory leaks in Crawlee
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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