You can manually edit the startup parameters, or you can use the "setmem.bat" script to do this for you.
Go to <IMC>\client\bin.
Run "setmem.bat 4096" to set the heap size to 4G. Run setmem.bat with no arguments to see usage info.
On Linux you can use setmem.sh, in the same directory.