Increasing Java Heap Size in Studio

nzblue_fish
nzblue_fish's picture
User offline. Last seen 8 weeks 3 days ago. Offline
Joined: 09/30/2009
Points: 1195

Hi Folks,

I've run in to a java.lang.OutOfMemoryError: Java heap space error when debugging an emml script.  I think I need to increase the maximum heap size for Studio, but changing the -Xmx value in the eclipse.ini file doesn't seem to have had the desired effect.

Can anyone point me to the right config option to increase the heap size when debugging.

Cheers, Innes

 

0
Your rating: None
rajeshk21
rajeshk21's picture
User offline. Last seen 1 year 23 weeks ago. Offline
Joined: 11/13/2008
Points: 0

Can you try the following setting in your eclipse.ini file?

--launcher.XXMaxPermSize

256m

-vmargs

-Xms64m

-Xmx1024m

Don’t give extra spaces and use small m in eclipse.ini….

 Start the eclipse with clean command.

($eclipse –clean)

Thanks,

Rajesh

nzblue_fish
nzblue_fish's picture
User offline. Last seen 8 weeks 3 days ago. Offline
Joined: 09/30/2009
Points: 1195

Hi Rajesh,

Thanks for your reply. Sorry for the delay in getting back to you, but I've been away from work for a week. Anyway ...

I can't increase the -Xmx switch to anything more than 512m otherwise I get a JVM error (exit code -1) when I launch Eclispe (Ganymede).

Here's the ecplise.ini file I am using:

-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
-framework
plugins\org.eclipse.osgi_3.4.2.R34x_v20080826-1230.jar
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms64m
-Xmx512m

Any suggestions?

Cheers, Innes

 

rajeshk21
rajeshk21's picture
User offline. Last seen 1 year 23 weeks ago. Offline
Joined: 11/13/2008
Points: 0

 

can you try this setting I just removed permsize....
-showsplash
org.eclipse.platform
-framework
plugins\org.eclipse.osgi_3.4.2.R34x_v20080826-1230.jar
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms128m
-Xmx1024m

Thanks,

Rajesh