-
Notifications
You must be signed in to change notification settings - Fork 86
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
Much higher memory usage after upgrading from Debian 9 (19.03.15) to Debian 11 (20.10.17) #1429
Comments
@bmaehr Why do you think docker is using more memory? |
Because I needed to give much more memory to the VM to run. I don't know why the memory usage of the whole system increased so much but it needs twice as much memory. |
The memory usage of docker-proxy does seem to have gone up for some reason (likes like ~2MB per process?) |
How many docker-proxy instances are you running (slash how many ports are you mapping)? @akerouanton is working on spawning fewer docker-proxy instances so we can have less overhead. Nonetheless, I'm with @cpuguy83 on this likely being unrelated; the only way I can see dockerd/docker-proxy being at fault is if you have enough instances that the increase in RSS is eating all your memory. |
500 ports (we are running an FTP server and need them for passive mode) |
Ah, that is a pretty high number of ports. With a RSS increase of ~2MB, that certainly accounts for some of your memory growth. I don't think we've looked at what may have changed in the docker-proxy to increase memory usage "recently" (read: in the past 4 years), but I think the best solution will be a single copy of the proxy per container. |
My recommendation would be to set |
SHR being 0 and RSS increasing by a similar amount makes me suspicious about dynamic vs. static linkage in the binary as the potential cause of the memory usage. |
Related docker-proxy issue: moby/moby#11185 |
I have a single java application running in a docker container on Debian. After upgrading from Debian 9 to Debian 10 or Debian 11 everything was freezing after some minutes of runtime. Even logging in on the VM docker was running on was not possible (https://stackoverflow.com/questions/61748292/debian-10-freezes-on-gcp/73364101#73364101).
After a long search I found out that the amount of memory was the problem. With the older version for the 3.75 GB of the VM even 600MB have been free and 1.8 GB has been used as cache. After the upgrade this all has been gone. I understand that new features use more memory but this increase is insane.
I have seen parameters to limit the memory usage of containers but didn't find any settings to limit the memory (reserved) for dockerd, containerd and docker-proxy.
Debian 9:
Debian 11 with the same application and even some daemons removed from the start script:
The text was updated successfully, but these errors were encountered: