I\'ve always been able to allocate 1400 megabytes for Java SE running on 32-bit Windows XP (Java 1.4, 1.5 and 1.6).
java -Xmx1400m ...
Toda
**There are numerous ways to change heap size like,
What worked for me was
Set proper appropriate JAVA_HOME path incase you java got updated.
create new system variable computer->properties->advanced setting->create new system variable
FYI: you can find default VMoption in Intellij help->edit custom VM option , In this file you see min and max size of heap.**