Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Permgen space in eclipse galileo(OutOfMemoryError: PermGen space)
Permgen space in eclipse galileo [message #646695] Thu, 30 December 2010 07:59 Go to next message
Nitilaksha M Shetty is currently offline Nitilaksha M ShettyFriend
Messages: 3
Registered: December 2010
Junior Member
Hello,

Whenever i tried to build my application through eclipse galileo it exits with following error : OutOfMemoryError: PermGen space


org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.OutOfMemoryError: PermGen space)
at org.eclipse.swt.SWT.error(SWT.java:3884)
at org.eclipse.swt.SWT.error(SWT.java:3799)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:137)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3855)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3476)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
Caused by: java.lang.OutOfMemoryError: PermGen space
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.def ineClass(DefaultClassLoader.java:183)




It will be appreciated if you could help me on this Cool ?

Thank you in advance
Re: Permgen space in eclipse galileo [message #646697 is a reply to message #646695] Thu, 30 December 2010 08:24 Go to previous messageGo to next message
Animesh Kumar is currently offline Animesh KumarFriend
Messages: 79
Registered: September 2010
Location: Bangalore
Member
This error occurs when the JVM runs out of space in the permanent generation heap. Since the defaults for the JVM are quite low, the first step should be to increase the default using -XX:MaxPermSize.

You can go to the Debug or Run Configurations of Eclipse and there in the Argument tab, under VM Arguments you can replace the existing aruments by
-Xms40m -Xmx384m -XX:MaxPermSize=128M


If the problem still persists, you can use :

-XX:MaxPermSize=256M or -XX:MaxPermSize=512M instead of -XX:MaxPermSize=128M


Regards,
Animesh
Re: Permgen space in eclipse galileo [message #646703 is a reply to message #646697] Thu, 30 December 2010 09:17 Go to previous messageGo to next message
Nitilaksha M Shetty is currently offline Nitilaksha M ShettyFriend
Messages: 3
Registered: December 2010
Junior Member
Thank you dear Smile ... Still the problem persists any alternate solutions Confused ?
Re: Permgen space in eclipse galileo [message #646775 is a reply to message #646703] Fri, 31 December 2010 03:39 Go to previous messageGo to next message
Animesh Kumar is currently offline Animesh KumarFriend
Messages: 79
Registered: September 2010
Location: Bangalore
Member
Try this Code
-Xms768m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=256m

or

-Xms768m -Xmx1024m -XX:PermSize=512m -XX:MaxPermSize=512m


You can either do this through Run/Debug configurations or you can go to the eclipse.ini file in the directory where your eclipse is installed and you can add the following under -vmargs :-
-Xms768m 
-Xmx1024m
-XX:PermSize=256m
-XX:MaxPermSize=256m


It should work.


Regards,
Animesh
Re: Permgen space in eclipse galileo [message #646782 is a reply to message #646775] Fri, 31 December 2010 05:45 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 2010.12.30 20:39, Animesh Kumar wrote:
> Try this Code
> -Xms768m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=256m
>
> or
>
> -Xms768m -Xmx1024m -XX:PermSize=512m -XX:MaxPermSize=512m
>
> You can either do this through Run/Debug configurations or you can go to
> the eclipse.ini file in the directory where your eclipse is installed
> and you can add the following under -vmargs :-
>
> -Xms768m -Xmx1024m
> -XX:PermSize=256m
> -XX:MaxPermSize=256m
>
>
> It should work.

Uh, no. I believe anything in eclipse.ini is for Eclipse itself and not
for the applications you're running. You were right the first time: do
that in the Run/Debug configuration.
Re: Permgen space in eclipse galileo [message #646843 is a reply to message #646782] Sat, 01 January 2011 09:53 Go to previous messageGo to next message
Nitilaksha M Shetty is currently offline Nitilaksha M ShettyFriend
Messages: 3
Registered: December 2010
Junior Member
Yup... i have tried with all .. still am facing same problem
Confused
Re: Permgen space in eclipse galileo [message #646984 is a reply to message #646695] Mon, 03 January 2011 19:29 Go to previous message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
On 12/30/10 2:59 AM, Nitilaksha M Shetty wrote:
> Hello,
>
> Whenever i tried to build my application through eclipse galileo it
> exits with following error : OutOfMemoryError: PermGen space


What operating system? What version of Java? Have you installed the
latest JDK/JRE and pointed Eclipse to it, as described in these pages:

< http://wiki.eclipse.org/FAQ_How_do_I_run_Eclipse%3F#Oracle.2 FSun_VM_1.6.0_21_on_Windows>
<http://wiki.eclipse.org/Eclipse.ini>


>
>
> org.eclipse.swt.SWTException: Failed to execute runnable
> (java.lang.OutOfMemoryError: PermGen space)
> at org.eclipse.swt.SWT.error(SWT.java:3884)
> at org.eclipse.swt.SWT.error(SWT.java:3799)
> at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr
> onizer.java:137)
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3855)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3476)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2405)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault
> (Realm.java:332)
> at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work
> bench.java:493)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at org.eclipse.ui.internal.ide.application.IDEApplication.start
> (IDEApplication.java:113)
> at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips
> eAppHandle.java:194)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher
> .runApplication(EclipseAppLauncher.java:110)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher
> .start(EclipseAppLauncher.java:79)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS
> tarter.java:368)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS
> tarter.java:179)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 559)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
> Caused by: java.lang.OutOfMemoryError: PermGen space
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClassCond(Unknown Source)
> at java.lang.ClassLoader.defineClass(Unknown Source)
> at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.def
> ineClass(DefaultClassLoader.java:183)
>
>
>
> It will be appreciated if you could help me on this 8) ?
>
> Thank you in advance
Previous Topic:Eclipse exiting when closing a html
Next Topic:Importing the SWT Package
Goto Forum:
  


Current Time: Wed Apr 24 18:19:15 GMT 2024

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

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

Back to the top