Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » java.lang.OutOfMemoryError: PermGen space
java.lang.OutOfMemoryError: PermGen space [message #812923] Sun, 04 March 2012 15:00 Go to next message
Roberto Jimenez is currently offline Roberto JimenezFriend
Messages: 17
Registered: March 2012
Junior Member
Hello, when I launch the second eclipse, with a project that needs Xbase dependency, I get this error:

java.lang.OutOfMemoryError: PermGen space

¿Any solution?

Thank you very much.
Re: java.lang.OutOfMemoryError: PermGen space [message #812937 is a reply to message #812923] Sun, 04 March 2012 15:25 Go to previous messageGo to next message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
On 2012-04-03 16:00, Roberto Jimenez wrote:
> Hello, when I launch the second eclipse, with a project that needs Xbase
> dependency, I get this error:
>
> java.lang.OutOfMemoryError: PermGen space
>
> ¿Any solution?
>

Did you try increasing the PermGen space? (in the launch config).

- henrik
Re: java.lang.OutOfMemoryError: PermGen space [message #812998 is a reply to message #812937] Sun, 04 March 2012 17:42 Go to previous messageGo to next message
Roberto Jimenez is currently offline Roberto JimenezFriend
Messages: 17
Registered: March 2012
Junior Member
Hi

I have modify the file eclipse.ini to increase it to 512:


-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.100.v20110505
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
-vmargs
-Xms40m
-Xmx384m


is this what you meant???
Re: java.lang.OutOfMemoryError: PermGen space [message #813016 is a reply to message #812998] Sun, 04 March 2012 18:17 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13661
Registered: July 2009
Senior Member
Hi,

shouldnt you change the Jvm Arguments of your Launch Configuration (Run -> Run Configurations...) e.g. by adding
-XX:MaxPermSize=128m
there

~Christian


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: java.lang.OutOfMemoryError: PermGen space [message #813046 is a reply to message #813016] Sun, 04 March 2012 19:19 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6929
Registered: July 2009
Senior Member
Hi Christian

eclipse.ini editing is what Eclipse FAQs recommend; it fixes all uses of
one Eclipse.

I do the same as you which fixes one use of a potentially migrating Eclipse.

Regards

Ed Willink

On 04/03/2012 18:17, Christian Dietrich wrote:
> Hi,
>
> shouldnt you change the Jvm Arguments of your Launch Configuration
> (Run -> Run Configurations...) e.g. by adding
> -XX:MaxPermSize=128m
> there
>
> ~Christian
Re: java.lang.OutOfMemoryError: PermGen space [message #813084 is a reply to message #813046] Sun, 04 March 2012 20:29 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13661
Registered: July 2009
Senior Member
Hi Ed,

adding --launcher.XXMaxPermSize
256m

has no influence on runtime "eclipse applications" at least in my experience
the only influence is on "Launch Eclipse Runtime"

so you have
(a) always make sure you choose "Launch Eclipse Runtime" and not "Eclipse Application"
(b) add the XX:MaxPermSize manually to the Launch "Eclipse Application" Config

~Christian


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: java.lang.OutOfMemoryError: PermGen space [message #873110 is a reply to message #813084] Thu, 17 May 2012 14:05 Go to previous message
Marco Tinacci is currently offline Marco TinacciFriend
Messages: 4
Registered: May 2012
Junior Member
Christian Dietrich wrote on Sun, 04 March 2012 15:29
Hi Ed,

adding --launcher.XXMaxPermSize
256m

has no influence on runtime "eclipse applications" at least in my experience
the only influence is on "Launch Eclipse Runtime"

so you have
(a) always make sure you choose "Launch Eclipse Runtime" and not "Eclipse Application"
(b) add the XX:MaxPermSize manually to the Launch "Eclipse Application" Config

~Christian


I've tried editing eclipse.ini at first, but didn't work. Changing the launch config did. Thanks Smile
Previous Topic:Problems with formatting rules
Next Topic:(Xtext) 15 Minute Tutorial needs to be updated for version 2.2
Goto Forum:
  


Current Time: Thu Nov 26 10:45:57 GMT 2020

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

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

Back to the top