I came across this piece of information when searching for something else. Suppose you have 4GB installed but for test purposes you want to have only 2 GB available for the OS, the normal way is to create a VPC/VM and then test your app with that. But looks like there is an easier way without using VPCs.
This magic can be done using msconfig.exe that ships with Vista and later.
start > run > msconfig > boot > advanced options
Check the Maximum Memory box and enter the number of KB you’d like to have in your machine.
Reboot and check the system memory to see if it worked
It also has options to change the number of processors available to the OS etc. Do note you will need to reboot after every change, but then you don't have to setup a VM if one is not handy.
Source: Restrict Your RAM


Comments