Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » java.lang.OutOfMemoryError: PermGen space
java.lang.OutOfMemoryError: PermGen space [message #1385647] Tue, 10 June 2014 08:37 Go to next message
Yugi Muto is currently offline Yugi MutoFriend
Messages: 33
Registered: February 2012
Member
Hello,

I am using eclipse-modeling-kepler-SR2-linux-gtk without any additional plugins.
When I am using it, I can read in the console sometimes:
Logging exception:
java.lang.OutOfMemoryError: PermGen space

When it happens, Eclipse does not respond and close after some seconds.

People on the Internet propose 3 solutions:
1) add memory to my system (I have 2GB)
2) modify my eclipse/eclipse.ini file
3) change the java version used (I am using java 1.7.0_07)

This is what I modified in my eclipse/eclipse.ini file:
$ cat eclipse/eclipse.ini
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.200.v20140116-2212
-product
org.eclipse.epp.package.modeling.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m

As you can see I have changed the line 256m by 512m (just after --launcher.XXMaxPermSize).
Also, I try with different versions of java.
But these solutions does not change anything.

Do you have THE solution?

Thank you.
Best regards.
Re: java.lang.OutOfMemoryError: PermGen space [message #1385722 is a reply to message #1385647] Tue, 10 June 2014 17:10 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 3906
Registered: July 2009
Senior Member

Change the line containing "-XX:MaxPermSize=256m" as well.

Nitin Dahyabhai
Eclipse Web Tools Platform
Re: java.lang.OutOfMemoryError: PermGen space [message #1385842 is a reply to message #1385722] Wed, 11 June 2014 15:12 Go to previous messageGo to next message
Yugi Muto is currently offline Yugi MutoFriend
Messages: 33
Registered: February 2012
Member
Nitin Dahyabhai > The problem seems to be solved using your suggestion.
Indeed, I have not encountered this problem since I have edited my "eclipse.ini" file.
As this problem occurred randomly I cannot be certain that the problem is resolved.
Re: java.lang.OutOfMemoryError: PermGen space [message #1385893 is a reply to message #1385842] Thu, 12 June 2014 06:47 Go to previous messageGo to next message
Yugi Muto is currently offline Yugi MutoFriend
Messages: 33
Registered: February 2012
Member
Ah... Indeed, today:
Logging exception:
java.lang.OutOfMemoryError: PermGen space

This is my eclipse/eclipse.ini file:
$ cat eclipse.ini
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.200.v20140116-2212
-product
org.eclipse.epp.package.modeling.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-XX:MaxPermSize=512m
-Xms40m
-Xmx512m

Do you have a solution?
Re: java.lang.OutOfMemoryError: PermGen space [message #1386024 is a reply to message #1385893] Fri, 13 June 2014 04:04 Go to previous messageGo to next message
Mike Ferreira is currently offline Mike FerreiraFriend
Messages: 1
Registered: June 2014
Junior Member
Not that I have an answer -- just the same problem. No problem on any of my Linux Boses here... By on my Win 8.1 box, it's embarrassing.

That box is an i% w/ 32GB RAM. Have tried tweaking the eclipse.ini:
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140116-2212
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
-vmargs
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms80m
-Xmx1024m

------------------
I've also tried other recommendations that wer edirected to others:
... (other settings same as above with) ...
--launcher.defaultAction
openFile
-vmargs
-Xms1024m
-Xmx2048m
-XX:+UseParallelGC
-XX:PermSize=512M
-XX:MaxPerSize=2048M
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms512m
-Xmx1024m
-------------------
All seem to be fine if I close things out and strat them back out again... it doesn't actually crash on startup anymore, but still is sluggish. Then it bog down. Go into a wait state after typing just a few characters.

I think I'm a fairly intelligent person it I have some kind of reference to look at to see how something works and understand what is going on... But I can't seem to find that.

Meaning-- It's all and well to recommend to change values blindly... But just where is the doc's that say what these .ini file options are so we could have an understanding just what we are changing? and what effect changing something has? Diagnostics and tuning usually takes soem kind of direction. If someone pointed us in the right direction... we could try changing those options to see if we could solve this problem on our own... to what each of us is trying to run on.
Re: java.lang.OutOfMemoryError: PermGen space [message #1386125 is a reply to message #1386024] Fri, 13 June 2014 13:42 Go to previous message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3071
Registered: July 2009
Senior Member
It's all in the wiki, and there are tons of references on the web to the most important pages, such as eclipse.ini. That page links to a handful of other very useful pages, especially the See Also section, and the documentation on launcher arguments that can go in eclipse.ini
Previous Topic:basic questions getting started
Next Topic:Viewing file properties in PHP Explorer and Navigator
Goto Forum:
  


Current Time: Mon Nov 30 21:20:29 GMT 2020

Powered by FUDForum. Page generated in 0.03106 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top