Intellij and docker on vm memory issues

I'm trying to run a development project on a vm, my vm has Debian 12 and has 8gb ram and I'm running 2 intellij projects + mysql in docker and my vm freezes completely ti the point I need to reset my pc. Anyone has suggestions how to avoid tha without increasing memory? I feel like that a small project like that should hold 8 gb memory

2 points · 5 comments · view on lemmy.world

5 Comments

epchris@programming.dev · 1 pts · 3y (1 reply)

While it's running, have you checked docker stats to see how much memory/cou the container is using? What's the host, what're it's total resources and what are you using to run the vm?

DeriHunter@lemmy.world · 1 pts · 3y

My host is windows which has 16gb ram and I assigned 8 gn for the vm. I haven't check what's the docker takes I'm pretty sure that the intellij and the have process are choking it

RandomDevOpsDude@programming.dev · 1 pts · 3y

You may get more traction asking in the communities that exist for those tools: IntelliJ and Docker

8GB for two separate IntelliJ projects sounds low. You could try importing both into one instance as separate "modules" so that there is only one IntelliJ instance/window.

Depending on how you are running the VM, the host may be choking it through the host OS and leading to OOM. Especially with a tool like docker.

Edit: I see you commented usage of windows, you may need to look into wslconfig

breadsmasher@lemmy.world · 0 pts · 3y

Are you running the project on an OS in the VM? Because the 8GB assigned to the VM will be used by the OS and anything else running in it?