Lots of out of memory errors re: PermGen space

michael.rollins
michael.rollins's picture
User offline. Last seen 1 year 41 weeks ago. Offline
Joined: 01/07/2009
Points: 231

I have to restart Eclipse on a regular basis when I'm using the Mashup Studio.  I generally get an out of memory error relating to PermGen space.  However, my permgen size in my .ini file is set to twice the recommended size in the documentation.  It most often occurs when I'm publishing mashups in succession.

0
Your rating: None
Deepak Alur
Deepak Alur's picture
User offline. Last seen 2 weeks 1 day ago. Offline
Joined: 09/09/2008
Points: 525

Mike,

Can you tell me what OS (MacOS/Windows/Linux)  you are on and what Eclipse version & Presto version ? Can you also paste the eclipse.ini contents here please? For example, my eclipse.ini (i am on MacOSX, with Presto 2.7.0) is as below:

-showsplash
org.eclipse.platform
-vmargs
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Xms256m
-Xmx1024m
-XX:PermSize=128M
-XX:MaxPermSize=256M

Mash On!
- deepak alur | vp product + engineering at jackbe  | follow me

sravann
User offline. Last seen 2 years 10 weeks ago. Offline
Joined: 12/03/2008
Points: 0

Hi,

Also please bear in mind that the settings in the eclipse.ini vary from machine to machine. You might need to tinker a bit before arriving at settings that suite your machine.

Thanks,

Sravan.

girish
girish's picture
User offline. Last seen 4 weeks 4 hours ago. Offline
Joined: 09/22/2008
Points: 70

eclipse has some known issues with reading "eclipse.ini" file. So, please make sure that:

1. each jvm setting is on separate line

2. order of settings is as you see in Deepak's settings above

here is some more info

http://blog.xam.dk/archives/68-Eclipse-and-memory-settings.html

basically, I believe Eclipse ignores if there are more options in one line.

 thx,

 

- Girish@JackBe

michael.rollins
michael.rollins's picture
User offline. Last seen 1 year 41 weeks ago. Offline
Joined: 01/07/2009
Points: 231

I'm running Presto 2.6.1 with MDC of 1.0.0.20091191827

Here's my Eclipse ini:

-showsplash
org.eclipse.platform
-Xlauncher.XXMaxPermSize256M
-framework
plugins\org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms256m
-Xmx512m

girish
girish's picture
User offline. Last seen 4 weeks 4 hours ago. Offline
Joined: 09/22/2008
Points: 70

Mike,

Could you take Deepak's configuration above and try it ? Deepak had similar issue and after rearranging the ini file contents like you see in his reply, it seem to be running fine for few weeks now.

Thx,

- Girish@JackBe

sravann
User offline. Last seen 2 years 10 weeks ago. Offline
Joined: 12/03/2008
Points: 0

Hi,

I also noticed that having to high permgen space allocated would result in Eclipse crashes, you would need to set this propornate to you RAM. I set

--launcher.XXMaxPermSize
256m

for my 2GB RAM.

Thanks,

Sravan.