Virtual Machine Error - Not enough memory for host computer
I am trying to complete the Senior System Architect training and am having trouble accessing the exercises through the virtual machine. The 'base memory' I have is 6144 mb. When I go into the Virtual Machine and turn it on >press settings> System - I can see my 'Base Memory' maxed out at 4096 along with the error message ' More than 80% of the host computer memory (3.87gb) is assigned to the virtual machine. Not enough memory is left for the host operating system.'
When I move the base memory slider to some thing more appropriate like 1024 or 2048 and run it, I get a 'Server not available' error when trying to access the URL provided by the virtual machine. If I run the machine with the current settings as is (Base memory at 4096) I will get a URL and access to the exercise modules but the machine moves very slow and then crashes.
What do I need to do to get my virtual machine working?
The best solution is to use a host (local machine) with at least 50% more RAM than the VM guest.
We have found that 4GB RAM allocated to the VM provides the best performance. 50% of that RAM is allocated to the database cache, 25% is allocated to the JVM heap (the Pega app), and 25% is allocated to the OS (CentOS) and JVM overhead.
Barring access to more RAM on the host, you could throttle the db cache and JVM heap in the VM, but you will undoubtedly experience performance issues in the Pega app.
Assuming you want to constrain the VM to 3GB RAM, edit the following files in the VM:
set shared_buffers to 768mb (25% of VM RAM), and effective_cache_size to 1536mb (50% of VM RAM)
set -Xms and -Xmx to 768m (25% of VM RAM), and -XX:MetaspaceSize=512m, and -XX:MaxMetaspaceSize=512m