This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes Out of memory error:permgen space Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Out of memory error:permgen space" Watch "Out of memory error:permgen space" New topic

Out of memory error:permgen space

sarvan kumar
Ranch Hand

Joined: Jul 28, 2010
Posts: 66
I am facing Out of memory error:perm gen space when i am clean and build all the project this error occur and automatically the eclipse closes. I am using Eclipse 3.5 and jboss server 4.2.0.

I have deleted the server and deleted the eclipse 3.5 folder and put the new one of eclipse 3.5 and jboss 4.2 server but i am facing the same error

I have also increase the eclipse.ini file
the value of perm gen space error


to 512 but no change

Can anyone having the solution

Ranil Liyana Arachchige
Ranch Hand

Joined: Sep 20, 2008
Posts: 71

Hi Saravanan,

Can you post the exception stack trace as well, other than that does the OME occur when you start the server or when you try to access an application deployed on the server ?

SCJP 1.4 (80%) , SCWCD5.0 (91%) , SCEA / OCMEA
uttam kumar
Ranch Hand

Joined: Jan 27, 2009
Posts: 128

Hi Sarvan,
This forum is only for JBoss related queries. Your problem is related to eclipse so please ask this to IDE forum.
sarvan kumar
Ranch Hand

Joined: Jul 28, 2010
Posts: 66
When i give clean and buildall to the project i get the following in the log file

!SESSION 2011-01-25 10:08:53.546 -----------------------------------------------
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product --launcher.XXMaxPermSize=1024M --launcher.XXMaxPermSize=1024m
Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product --launcher.XXMaxPermSize=1024M --launcher.XXMaxPermSize=1024m

!ENTRY org.eclipse.mylyn.tasks.core 2 0 2011-01-25 10:09:34.207
!MESSAGE Failed to load, restoring from snapshot
org.eclipse.core.runtime.CoreException: Task list file not found "E:\EVENTPORTALWORKSPACE1.0\.metadata\.mylyn\"
at org.eclipse.mylyn.internal.tasks.core.externalization.TaskListExternalizer.readTaskList(
at org.eclipse.mylyn.internal.tasks.core.externalization.TaskListExternalizationParticipant$1.execute(
at org.eclipse.mylyn.internal.tasks.core.externalization.TaskListExternalizationParticipant.load(
at org.eclipse.mylyn.internal.tasks.core.externalization.AbstractExternalizationParticipant.performLoad(
at org.eclipse.mylyn.internal.tasks.core.externalization.TaskListExternalizationParticipant.performLoad(
at org.eclipse.mylyn.internal.tasks.core.externalization.AbstractExternalizationParticipant.execute(
at org.eclipse.mylyn.internal.tasks.core.externalization.ExternalizationManager$
at org.eclipse.mylyn.internal.tasks.core.externalization.ExternalizationManager.load(
at org.eclipse.mylyn.internal.tasks.core.externalization.ExternalizationManager.load(
at org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin.initializeDataSources(
at org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin.start(
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$
at Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(
at org.eclipse.osgi.framework.util.SecureAction.start(
at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(
at org.eclipse.ui.internal.WorkbenchPlugin$
at org.eclipse.swt.custom.BusyIndicator.showWhile(
at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(
at org.eclipse.ui.internal.EarlyStartupRunnable.getExecutableExtension(
at org.eclipse.ui.internal.Workbench$
!SUBENTRY 1 org.eclipse.mylyn.tasks.core 4 0 2011-01-25 10:09:34.207
!MESSAGE Task list file not found "E:\EVENTPORTALWORKSPACE1.0\.metadata\.mylyn\"

!ENTRY org.eclipse.ui 4 0 2011-01-25 10:11:21.296
!MESSAGE Unhandled event loop exception

!ENTRY 4 2 2011-01-25 10:11:23.093
!MESSAGE An internal error occurred during: "Building Workspace".

!ENTRY 4 2 2011-01-25 10:11:25.529
!MESSAGE An internal error occurred during: "Validation EVENTPORTALSPRING".

!ENTRY org.eclipse.ui 4 0 2011-01-25 10:11:32.106
!MESSAGE Unhandled event loop exception

!ENTRY 4 2 2011-01-25 10:11:41.354
!MESSAGE An internal error occurred during: "Building workspace".

!ENTRY 4 2 2011-01-25 10:11:47.399
!MESSAGE An internal error occurred during: "Building workspace".

!ENTRY 4 2 2011-01-25 10:11:59.240
!MESSAGE An internal error occurred during: "Building workspace".

Can anyone plese give the solution for this?


Vijitha Kumara

Joined: Mar 24, 2008
Posts: 3817

What's your JDK version? Something similar from Eclipse forums here

[How to ask questions] [Twitter]
Peter Johnson

Joined: May 14, 2008
Posts: 5812

The stack trace you posted has nothing to do with an OOME, instead it is complaining about a missing file: E:\EVENTPORTALWORKSPACE1.0\.metadata\.mylyn\

If you didn't accidently delete that file, and cannot restore it, you might need to reinstall Eclipse (unless there is someone on the IDE forum that has some other ideas).

JBoss In Action
Don't get me started about those stupid light bulbs.
subject: Out of memory error:permgen space
Similar Threads
Migrating from RAD IDE to Eclipse IDE
Java Heap Space
Issue in Eclipse 3.5 Galileo (PermGen Space Error and Out of memory error)
Lookup of service failed - WebService Application
Out of Memory with high Free Memory