DEV Community

Discussion on: vmmen process consuming too much memory (Docker Desktop)

Collapse
 
lucagrandicelli profile image
Luca

Because, in my opinion, as soon as you start debugging and/or using multi-thread operations, the performances quickly go down. However, of course that's not "impossible", but i managed installing the Docker engine directyly onto the Ubuntu installation under WSL2.

Thread Thread
 
_hs_ profile image
HS

Again, I don't have such issues, performance stays consistent but eats ram which is different from what you get. Question is how much ram and what CPU you have? I have Ryzen 1700 with 48GB ram which in turn uses about 2GB for docker alone. On the other hand messaging systems based on Apache Bookkeeper and so cause 2GB ram more to be used so it's not about docker in my case. Running such system with SSO like KeyCloak 900mb ram, database about 2GB as well and IntelliJ + application I build is something to excpect require more than 16GB total ram for the system. It will compensate on good SSD using its space instead of ram but if you want to run those things all at once at least 32GB should be in the system for Windows. So I guess you could check out how much do containers actually use in recommended cases

Thread Thread
 
lucagrandicelli profile image
Luca

Yep, it's a matter of RAM eating that in my case slows down everything (Intel(R) Core(TM) i5-8500 CPU @ 3.00GHz 3.00 GHz 16GB RAM). I think the docker deamon was roughly higher 98% consuption. Anyway, this thread (github.com/microsoft/WSL/issues/4166) exposes very well others' issues like this and i'm not sure if there's an official fix at the moment. However, /w 48GB RAM you have enough room to spare.

Thread Thread
 
_hs_ profile image
HS

Ahh yeah 16GB is what I had for normal usage. I actually bought 32GB when I started working from home to avoid bottlenecks as I ran too many things at once and company didn't feel like testing in the cloud for money haha

Thread Thread
 
joaovictorvp profile image
João Victor VP - N

What's worse is that even with 32GB I still experience some memory issues, it can easily start consuming 70-80% of system RAM with about 8 containers on my computer counting the VS instance