logic
logic
DIAdiscord.js - Imagine an app
Created by logic on 11/18/2024 in #djs-questions
Memory leak when sharding
I'm experiencing a memory leak when using sharding in my bot, obviously memory leaks are hard to debug so I just would like some advice on how to diagnose the issue. The bot slowly rises in memory usage up to 2-3 gbs until it runs out of memory. I tried running heap snapshots, but that didn't provide meaningful results. I've tried using discord-hybrid-sharding and without it, with the same results. I've tried switching tokens to a bot with around 5 servers, and memory usage started low due to having less things to cache, but always grew in memory until crashing. Yet, removing the sharding refactor never had memory climb indefinitely. Has anyone experienced similar issues, I'd appreciate some advice on what to do/where to look.
8 replies
DIAdiscord.js - Imagine an app
Created by logic on 7/18/2023 in #djs-questions
Does discord.js update a guild's scheduled events cache if one is changed
I just ran a test where I looked through a guild's scheduled event, before and after I changed a property on it, and they are the same. So should this be reported to the github or is it just not possible or too miniscule to act on?
2 replies