D.js bot using 8gb ram

A few months ago I'm rewriting my old bot in python for discord.js
I made the sharding system according to the guide, always using all functions to search for data between shards.

I tried to migrate the bot today and my server crashed because the bot exceeded 8gb of memory.
I believe that a bot with 48 shards, 50.000 guilds should not be using so much memory.

If you have any ideas where I went wrong? please let me know
Was this page helpful?