Permgen space in eclipse galileo [message #646695] |
Thu, 30 December 2010 07:59 |
Nitilaksha M Shetty 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 ?
Thank you in advance
|
|
|
Re: Permgen space in eclipse galileo [message #646697 is a reply to message #646695] |
Thu, 30 December 2010 08:24 |
|
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 #646775 is a reply to message #646703] |
Fri, 31 December 2010 03:39 |
|
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 |
|
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.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.09277 seconds