mrjackwills / oxker

A simple tui to view & control docker containers
MIT License
727 stars 24 forks source link

[BUG] issue freeze when click on CPU to show from high to low #34

Closed killmasta93 closed 7 months ago

killmasta93 commented 7 months ago

Hi Currently when i run docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock:ro --pull=always mrjackwills/oxker

and i click on the CPU from high to low it freezes up

Thank you

image

mrjackwills commented 7 months ago

Is it possible to provide any further details, what kind of machine and operating system are you using?

I have tested on x86, armv6, and aarm64 machines, and I can't replicate the error

killmasta93 commented 7 months ago

thanks for the reply, currently using ubuntu 20.04 LTS i realized it happens when i have lots of containers currently i have 120, if i try it on less it works fine

mrjackwills commented 7 months ago

I've not tested with 120 containers, can I ask you to run it with a ten second (10,000ms) update interval oxker -d 10000 and see if that works. If not, try increasing the interval.

I have an idea for a fix, would you be able to test it if I created a branch/binary and shared the link with you?

killmasta93 commented 7 months ago

hi there, i ran

docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock:ro --pull=always mrjackwills/oxker -d 10000

same issue :(

sure you can create the link i can try it out :)

mrjackwills commented 7 months ago

Thanks, I spun up over 300 containers on my machine, and I couldn't get the crash to occur, so it's going to be hard for me to debug this issue.

Also, my idea for a fix is a lot more convoluted than I had originally expected, so it might be a while before I can get a new working binary for you to test.

killmasta93 commented 7 months ago

hi there, so i think i figured out, what i did when i ran the container, i filter first on the RAM then i filter on the CPU and got it working, if anything ill post back again