-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extreme memory usage instantly when starting rtorrent container [weird issue] #53
Comments
Using a new runtime on the backend like containerd or a different version of docker? I needed to modify the runtime config to resolve it. |
I'm running the latest docker that VMware PhotonOS repository provides:
I did update to the latest packages before I spun down the system, but I did not think that would influence the docker images? How did you go about changing the runtime config? (I did have one other mysql image spike with memory, and I resolved that by using the latest mysql image) |
If you're using containerd, check |
Thanks. I tried changing it to |
Changing OOM killer settings won't help with the root problem of the process using too much memory. One thing I noticed is that the tag isn't pinned in the compose file, so you may want to double check that you're on the latest release tag ( Can you post your rtorrent.rc, and the amount of space your session directory is using? An estimate of the number of active torrents would be helpful as well. Does the behavior still occur if you temporarily move all files out of the session directory? If so, you can try moving them back into the directory in batches (e.g. all the files starting with |
Master has a lot of issues. It does not save session for newly added torrents nor use the specified directory when adding. I filed both these issues but no dice. |
@kannibalox That's the thing, I get the same results regardless. The one in the video is a clean one, no torrents, no sessions, default rtorrent.rc config and a minimal docker-compose. I was thinking that that could be the issue earlier on, so I moved away from my custom one (with quite a bit of custom things and sessions) to a minimal/fresh one. I'll see if I can pull another image. |
Ok, so if I Still no idea what's causing the issue. Afaik not stating any tags pulls the ´latest´ tag by default. That was updated 7 months ago. ´master-amd64´ was updated 4 months ago. |
Trying it in my real setup don't work that well. I have a few scripts, so I'm bulding a custom image via @jesec image. Dockerfile:
For some reason it starts two rtorrent instances in the same image. If I manually kill one of the instances inside the image it seems to work as normal, with the exception of a script that don't trigger (even if I can trigger it manually). Wonder what the breaking change is. |
I can confirm I'm also getting the same issue on Linux fedora 6.0.10-200.fc36.x86_64 Mac Pro 2013 64gb Ram Rtorrent will exit if I attempt to limit the amount of RAM using docker-compose.
rtorrent_1 exited with code 137 Additionally setting the limits in the .rtorrent.rc to limit memory also does nothing. cat ~/Config/.rtorrent.rc
|
Pulling jesec/rtorrent:master-amd64 seemed to fixed the issue for me. |
One of the changes between the
Is the memory issue at least fixed? I tried that same Dockerfile (with no config) and only saw one process. |
aha, ok. My bad. The CPU usage issue, not sure either. Flood is unresponsive, killing the process (one of rtorrents threads), it seemed to work for while, until it happened again and Flood became unresponsive again. It was just using 100% of one of the cores of the system. I don't really have any idea, other than what I changed on my system was updating PhotonOS – so something there caused the memory issue (and I originally used |
I've been using your rtorrent docker image for ages now, without issue. I've recently moved houses (including my server), so I spun everything down, before spinning it up again in the new house. Everything works as expected, EXCEPT for rtorrent.
Starting rtorrent causes it to use an extreme amount of memory (even if set up from scratch using a minimal docker-compose file and your rtorrent.rc file).
See how much the memory increases when starting the container:
Screen.Recording.2022-11-21.at.10.41.03.mov
It exits with error 137 which means
a container or pod is trying to use more memory than it's allowed.
The only console log output I get is:
docker-compose.yml:
I can't wrap my head around what can cause this. Any help is much appreciated!
Thanks!
The text was updated successfully, but these errors were encountered: