Bot RAM usage

Hi, I have a Discord bot that is in around 65,000 servers. I have sharding, and it launches around 65 shards. They all come up, but I have noticed the RAM creeps up (see image) The increase is when I started it, and you can see it creeping up after. I'm worried about how high its going to climb. The bot is super simple, one command and sends a request to an API, then returns the response. Support would be appreciated.
No description
17 Replies
d.js toolkit
d.js toolkit•6mo ago
- 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!
NP
NPOP•6mo ago
It's up to 13.5 GB RAM in the screenshot
treble/luna
treble/luna•6mo ago
what intents do you have?
NP
NPOP•6mo ago
"intents": [
"Guilds",
"GuildMessages",
"GuildMessageReactions",
"GuildInvites",
"DirectMessages",
"DirectMessageReactions"
],
"intents": [
"Guilds",
"GuildMessages",
"GuildMessageReactions",
"GuildInvites",
"DirectMessages",
"DirectMessageReactions"
],
@wolvinny🌈 is that amount of RAM expected? tbh reactions can be removed ah, is there any option to remove the cache? we literally only need the one slash command
d.js docs
d.js docs•6mo ago
guide suggestion for @NP: :guide: Miscellaneous: Cache customization - Limiting caches read more
NP
NPOP•6mo ago
oh yeah true
Amgelo
Amgelo•6mo ago
maybe a low limit instead of disabling it entirely
NP
NPOP•6mo ago
but if i dont need it? ill test it without
Amgelo
Amgelo•6mo ago
then this
NP
NPOP•6mo ago
yeah i will test removing intents like Messages
NP
NPOP•6mo ago
@Qjuh @Amgelo
No description
NP
NPOP•6mo ago
looking better ty
Youssef
Youssef•6mo ago
How do you track ram like this?
Unknown User
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
Youssef
Youssef•6mo ago
Thats cool
NP
NPOP•6mo ago
yeah
Patryk
Patryk•6mo ago
You can use hybrid sharding too I think But that requires adjusting the script

Did you find this page helpful?