Open the Java icon on your Windows Control Panel
Select the Java tab of the Java Control Panel
Increase the amount of memory allocated in the Runtime Parameter. The setting -Xmx512M will allocate 512 MB of RAM to Java.