Linux
Launch the the ControlPanel: $JAVA_HOME/bin/ControPanel
add the parameters -Xms200000000 -Xmx500000000
Windows
In the Configuration Panel, click on Java and set the parameters as shown for Linux.