Troubleshoot Memory Issues
I have one app that is regularly getting killed by the system for memory consumption. Any tips on how to begin troubleshooting what is causing this would be appreciated.
3 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!what intents are you using
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.GuildMessageReactions,
GatewayIntentBits.MessageContent
1 guild,
`
[11114676.411569] Out of memory: Killed process 651420 (bun) total-vm:74235776kB, anon-rss:162544kB, file-rss:0kB, shmem-rss:0kB, UID:1000 pgtables:688kB
oom_score_adj:0
[9987737.521653] Out of memory: Killed process 528010 (bun) total-vm:74391420kB, anon-rss:190984kB, file-rss:0kB, shmem-rss:0kB, UID:1000 pgtables:724kB
oom_score_adj:0
[198711.105407] Out of memory: Killed process 11122 (xo) total-vm:12562500kB, anon-rss:369976kB, file-rss:0kB, shmem-rss:0kB, UID:1000 pgtables:9544kB oom_score_adj:0
684
ok