File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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
Author

Out of memory error:permgen space

sarvan kumar
Ranch Hand

Joined: Jul 28, 2010
Posts: 66
Hi,
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

--launcher.XXMaxPermSize
256M

to 512 but no change

Can anyone having the solution

Thanks,
K.Saravanan
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
Hi,
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 -----------------------------------------------
eclipse.buildId=I20090611-1540
java.version=1.6.0_21
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 tasks.xml.zip, restoring from snapshot
!STACK 1
org.eclipse.core.runtime.CoreException: Task list file not found "E:\EVENTPORTALWORKSPACE1.0\.metadata\.mylyn\tasks.xml.zip"
at org.eclipse.mylyn.internal.tasks.core.externalization.TaskListExternalizer.readTaskList(TaskListExternalizer.java:190)
at org.eclipse.mylyn.internal.tasks.core.externalization.TaskListExternalizationParticipant$1.execute(TaskListExternalizationParticipant.java:78)
at org.eclipse.mylyn.internal.tasks.core.TaskList.run(TaskList.java:657)
at org.eclipse.mylyn.internal.tasks.core.externalization.TaskListExternalizationParticipant.load(TaskListExternalizationParticipant.java:82)
at org.eclipse.mylyn.internal.tasks.core.externalization.AbstractExternalizationParticipant.performLoad(AbstractExternalizationParticipant.java:83)
at org.eclipse.mylyn.internal.tasks.core.externalization.TaskListExternalizationParticipant.performLoad(TaskListExternalizationParticipant.java:87)
at org.eclipse.mylyn.internal.tasks.core.externalization.AbstractExternalizationParticipant.execute(AbstractExternalizationParticipant.java:73)
at org.eclipse.mylyn.internal.tasks.core.externalization.ExternalizationManager$1.run(ExternalizationManager.java:118)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.mylyn.internal.tasks.core.externalization.ExternalizationManager.load(ExternalizationManager.java:107)
at org.eclipse.mylyn.internal.tasks.core.externalization.ExternalizationManager.load(ExternalizationManager.java:85)
at org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin.initializeDataSources(TasksUiPlugin.java:786)
at org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin.start(TasksUiPlugin.java:576)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:782)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:773)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:754)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:280)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:408)
at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:111)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:449)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:211)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:376)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:452)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:405)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:393)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:321)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:231)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1193)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:160)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:874)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)
at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:267)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:52)
at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:263)
at org.eclipse.ui.internal.EarlyStartupRunnable.getExecutableExtension(EarlyStartupRunnable.java:117)
at org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartupRunnable.java:66)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.Workbench$55.run(Workbench.java:2192)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
!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\tasks.xml.zip"

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

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

!ENTRY org.eclipse.core.jobs 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 org.eclipse.core.jobs 4 2 2011-01-25 10:11:41.354
!MESSAGE An internal error occurred during: "Building workspace".

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

!ENTRY org.eclipse.core.jobs 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?

Thanks,
K.Saravanan

Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3838

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


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5838
    
    7

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\tasks.xml.zip

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Out of memory error:permgen space