When trying to launch and run a flex/java project in eclipse I kept getting a ‘Out of Memory Exception’ and ‘Java Heap Space’ using Eclipse, Tomcat and a JRE.
While researching trying to adjust the memory settings I found three places to adjust these:
-
Eclipse.ini
-
The JRE Settings under Window > Preferences
-
Catalina.sh or Catalina.bat
What are the differences between setting -xms and -xmx in these different places and what does is mean?
Is there any way to verify these memory settings are being set accordingly?
What are the optimal -xms and -xmx settings for a computer with 2gb of RAM?
Any other memory tips?
Thanks.
-xms is the start memory (at the VM start), -xmx is the maximum memory for the VM