openbullet / OpenBullet2

OpenBullet reinvented
https://docs.openbullet.dev/
MIT License
1.65k stars 455 forks source link

[Bug]: Ram issue: just four running job, then 4G ram used.. #454

Open meisuj815 opened 2 years ago

meisuj815 commented 2 years ago

Version of the software

0.1.23

Operating system

Debian 10

Browser / Native

Firefox

What happened?

image of Ram usage

just four running job, then 4G ram used.. Hi, which tools should I use for dump the memory for you to debug?

for privacy season not showing code in here, if you want the LoliCode ask me again

thanks alot for help

Relevant LoliCode if needed

No response

openbullet commented 2 years ago

Please use dotnet dump as shown in this blog post, then simply send me the dump file (you don't need to analyze it yourself) https://www.tessferrandez.com/blog/2021/03/18/debugging-a-netcore-memory-issue-with-dotnet-dump.html

meisuj815 commented 2 years ago

Hi @openbullet

Thanks for reply. I already dump the ram via this command:

apt -y install dotnet-sdk-5.0
dotnet tool install --global dotnet-dump
dotnet dump collect -p 3932

The file had 3.7G big.. I will zip the file and upload to google drive for you to debug, please wait a while.

meisuj815 commented 2 years ago

https://file.io/0xkyqO0kNg0V

Wow, after 7z the file only had 84MB

openbullet commented 2 years ago

Yes because there is a lot of repeated data and compression is really good at handling that. Anyways I will take a look at it and let you know.

bestisben-xyz commented 2 years ago

image image

hi @openbullet now the RAM almost running out.. just three running job

openbullet commented 2 years ago

I am going to look into it, please understand that fixing things can take time since this is not my full time job and I have other things to do and other issues to prioritize ^^

bestisben-xyz commented 2 years ago

Hi @openbullet

Sure bro, that is not a problem, I am totally understand. I am very thankful for what you did:)

shakshak12 commented 2 years ago

image Hey @openbullet same issue is here no job is running high Ram usage (4 jobs already finished with huge custom)

image V0.2.1

openbullet commented 2 years ago

Hey @shakshak12 the high ram usage is probably due to the fact that the jobs that finished still contain some information about the data/proxies/hits inside them. That information usually gets deleted when you run jobs again. Please make sure the Bot Log is not enabled in RL settings, because that is the main source of ram usage in the entire program.

shakshak12 commented 2 years ago

Bot log is not enabled and the issue is still there

openbullet commented 2 years ago

Please take a memory dump as instructed in a few posts above and send it to me, thanks!

shakshak12 commented 2 years ago

Thanks for responding but sorry I am not able to dump the memory, I am running OB2 using docker and PID is different each time image image

shakshak12 commented 2 years ago

trying with ps aux to get the Process ID image

trying this command

image

JReming85 commented 2 years ago

You can do it within the container

docker ps to get the container id or name if you dont already know the name

docker exec <container id or name> <cmd>

You can even run a shell

docker exec -it <container id or name> /bin/bash