RAM Usage

What can cause that much ram usage only from "Strings"?
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent
],
partials: [Partials.Channel, Partials.GuildMember],
makeCache: Options.cacheWithLimits({
ClientVoiceManager: 0,
WebSocketManager: 0,
ApplicationCommandManager: 0,
ApplicationCommandPermissionsManager: 0,
BaseGuildEmojiManager: 150,
ReactionUserManager: 0,
ReactionManager: 0,
BaseManager: 0,
CachedManager: 0,
DataManager: 0,
GuildApplicationCommandManager: 0,
GuildBanManager: 0,
GuildEmojiManager: 150,
GuildEmojiRoleManager: 0,
GuildInviteManager: 0,
GuildMemberManager: {
maxSize: 1250,
sweepFilter: collection => (value, key, collection) => value.id !== client.user.id,
sweepInterval: 1000
},
GuildStickerManager: 0,
MessageManager: 0,
PresenceManager: 0,
StageInstanceManager: 0,
ThreadManager: 0,
ThreadMemberManager: 0,
UserManager: {
maxSize: 1250,
sweepFilter: collection => (value, key, collection) => value.id !== client.user.id,
sweepInterval: 1000
},
VoiceStateManager: 0,
ShardingManager: 0
})
});
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent
],
partials: [Partials.Channel, Partials.GuildMember],
makeCache: Options.cacheWithLimits({
ClientVoiceManager: 0,
WebSocketManager: 0,
ApplicationCommandManager: 0,
ApplicationCommandPermissionsManager: 0,
BaseGuildEmojiManager: 150,
ReactionUserManager: 0,
ReactionManager: 0,
BaseManager: 0,
CachedManager: 0,
DataManager: 0,
GuildApplicationCommandManager: 0,
GuildBanManager: 0,
GuildEmojiManager: 150,
GuildEmojiRoleManager: 0,
GuildInviteManager: 0,
GuildMemberManager: {
maxSize: 1250,
sweepFilter: collection => (value, key, collection) => value.id !== client.user.id,
sweepInterval: 1000
},
GuildStickerManager: 0,
MessageManager: 0,
PresenceManager: 0,
StageInstanceManager: 0,
ThreadManager: 0,
ThreadMemberManager: 0,
UserManager: {
maxSize: 1250,
sweepFilter: collection => (value, key, collection) => value.id !== client.user.id,
sweepInterval: 1000
},
VoiceStateManager: 0,
ShardingManager: 0
})
});
My bot is in 16k servers,
No description
2 Replies
d.js toolkit
d.js toolkitā€¢5mo 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!
Erick
ErickOPā€¢5mo ago
it uses 4.1gb ram in 1 day of uptime how i can detect memory leaks? šŸ‘
Want results from more Discord servers?
Add your server