OpenBullet2 icon indicating copy to clipboard operation
OpenBullet2 copied to clipboard

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

Open meisuj815 opened this issue 4 years ago • 14 comments

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

meisuj815 avatar Sep 11 '21 13:09 meisuj815

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

openbullet avatar Sep 11 '21 13:09 openbullet

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 avatar Sep 11 '21 14:09 meisuj815

https://file.io/0xkyqO0kNg0V

Wow, after 7z the file only had 84MB

meisuj815 avatar Sep 11 '21 14:09 meisuj815

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.

openbullet avatar Sep 11 '21 21:09 openbullet

image image

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

bestisben-xyz avatar Sep 16 '21 16:09 bestisben-xyz

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 ^^

openbullet avatar Sep 16 '21 17:09 openbullet

Hi @openbullet

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

bestisben-xyz avatar Sep 23 '21 17:09 bestisben-xyz

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

shakshak12 avatar Mar 15 '22 09:03 shakshak12

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.

openbullet avatar Mar 16 '22 06:03 openbullet

Bot log is not enabled and the issue is still there

shakshak12 avatar Mar 17 '22 23:03 shakshak12

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

openbullet avatar Mar 18 '22 20:03 openbullet

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 avatar Mar 19 '22 23:03 shakshak12

trying with ps aux to get the Process ID image

trying this command

image

shakshak12 avatar Mar 20 '22 12:03 shakshak12

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

JReming85 avatar Mar 21 '22 22:03 JReming85