How much RAM should I give?

I have 8 GB RAM on the host. How should I think about what to give the guest? Right now I gave it 4 GB as a SWAG. It seems to make both the host and the guest slow sometimes. What I really want is the guest to have a similar experience as development on my host had. I am building a Java application with Maven and running it on Tomcat on the guest. But I am running IntelliJ on my host and that's where I'm updating code. I think it uses a fair bit of RAM itself to "Build automatically." So anyone have any experience here? How much RAM can give my guest without starving my host?

2 thoughts on “How much RAM should I give?”

  1. It’s really a trial and error type deal. I’d start with 2GB and if the guest starves increase it.

    If you can’t find a good middle ground, you might want to buy another stick of RAM.

  2. Make sure you aren’t running out of entropy in the VM. It can really hurt performance.

    But I almost always start 1G and move up from there.


Leave a Comment