Massive memory leak #2779
Replies: 3 comments
-
|
I also don't know if I should post it as an issue, because it might be my fault. Should I still open a issue from this discussion? |
Beta Was this translation helpful? Give feedback.
-
|
I'm having a similar issue with my chatbridge bot. The bot spawns many times while its online and when it reconnects it cleans everything up (events and intervals). I even implemented a chunk and entity purging method |
Beta Was this translation helpful? Give feedback.
-
|
Maybe you should try using node-Minecraft-protocol directly, at least for the server scanning purpose, it’d be okay, you don’t really need physics on a scanner bot. Though for such a supposedly massive project, you should consider using something like MCProtocolLib on Java/Kotlin. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Greetings,

me and one of my friends are currently working on a project where we collect UUIDs by 1st scanning servers from all public IP ranges and 2nd letting bots (through Mineflayer) join all servers we've collected.
This is my current core: https://paste.northernsi.de/famesedasa.js
However, the code takes more and more RAM as the minutes pass, I already experienced it taking 2 GiB of RAM after roughly 30 minutes.
As you can see in the screenshot, the RAM usage is going up in a rather constant way (after restarting the code, as you can see at the usage drop).
I'm not an experienced JS developer yet, so I'm happy if someone can explain me the (root) cause of this memory leak and maybe how to (basically) fix it ;D
Beta Was this translation helpful? Give feedback.
All reactions