#my bot is taking a lot of MB

26 messages · Page 1 of 1 (latest)

tawdry mango
#

when I add the code that is in the "Sharding" section of the guide (https://discordjs.guide/sharding/) my bot is taking around 70MB but when I remove that part of the code, he's taking around 130MB
is it normal?

coral mistBOT
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

turbid oak
#

how are you measuring that?

tawdry mango
turbid oak
#

is that the sharder?

#

if yes, then it probably just displays only what the sharder itself uses

#

since for me it lists 44 mb

tawdry mango
turbid oak
#

but summing up what shard processes claim goes to 77

turbid oak
tawdry mango
#

because I don't have any shards on the screen

turbid oak
#

that... doesn't really change what i said and what you said in the original message

#

that when you shard it says less

tawdry mango
#

ahh you mean when I add shards it shows me what the shard is taking as mb?

turbid oak
#

the sharding manager just spawns child processes

#

it's very likely that pm2 doesn't count those towards the main process that spawned them

tawdry mango
#

maybe showing the sharding code would be useful?

turbid oak
#

uh what

#

no

#

that makes 0 difference

tawdry mango
#

ah

turbid oak
#

since it's not even your code that measures / displays anything, isn't it

tawdry mango
#

nah it's pm2

#

is it normal?
so, it is, right?

turbid oak
#

yes