It is recommended to assign not more than half of your Mac's memory (RAM) to a virtual machine. And if you want to run multiple virtual machines simultaneously, it applies to all of their memory combined.