appu1232 / Discord-Selfbot

Discord selfbot made with Python using discord.py
GNU General Public License v3.0
510 stars 603 forks source link

Heroku dyno using too much memory #376

Closed npgy closed 6 years ago

npgy commented 6 years ago

I've gotten the bot to work correctly in Heroku, but running a single command takes minutes. In the console, this error shows frequently: 2018-08-10T22:14:57.940218+00:00 heroku[worker.1]: Process running mem=650M(127.1%) 2018-08-10T22:14:57.940390+00:00 heroku[worker.1]: Error R14 (Memory quota exceeded)

If anyone has the bot working in Heroku without this error, I'd like to know how you did it.

Macleykun commented 6 years ago

It's just that you have alot of servers/channels. Some of these bots happen to use more memory than others. Nothing to be afraid of because the maximum is 1GB. So your well in the clear.

npgy commented 6 years ago

Yeah, that's true. It never uses a full gigabyte, but it takes like 5 minutes to get a response from a command if any at all.

Macleykun commented 6 years ago

Reduce amount of servers you are in, or use a VPS with more core/memory/faster storage.