By default, CDK creates virtual environments with 2GB of RAM. But it allows any user to easily increase the VM memory.
This is as easy as defining the VM_MEMORY environment variable.
Example: To increase the VM memory of CDK to 8GB in Linux or Mac, execute the following command before running "vagrant up":
$ export VM_MEMORY=8196
If you want a persistent change, then you should change the default value in the Vagranfile. Search for VM_MEMORY