Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » java.lang.OutOfMemoryError on Eclipse(java.lang.OutOfMemoryError occuring during Building Workspace)
java.lang.OutOfMemoryError on Eclipse [message #507088] Mon, 11 January 2010 22:19 Go to next message
Eclipse UserFriend
Dear All,

I am compiling a J2EE+Flex application on eclipse ganymede Version: 3.4.1 with the following eclipse.ini settings. (I am working on windows7 machine with 2GB Ram)

-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512M
-framework
plugins\org.eclipse.osgi_3.4.2.R34x_v20080826-1230.jar
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms1024m
-Xmx1024m
-XX:PermSize=512m
-XX:MaxPermSize=512m
-XX:+HeapDumpOnOutOfMemoryError
-Djava.net.preferIPv4Stack=true



But I have continuously happened to face for the following Memory out of bounce exception during compiling the application.

An internal error occurred during: "Building Workspace". java.lang.OutOfMemoryError


Following is the exception trace at <workspace>/.metadeta/.log file.

eclipse.buildId=M20080911-1700
java.version=1.6.0_11
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.core.jobs 4 2 2010-01-12 08:14:47.007
!MESSAGE An internal error occurred during: "Building Workspace".
!STACK 0
java.lang.OutOfMemoryError
at java.io.RandomAccessFile.writeBytes(Native Method)
at java.io.RandomAccessFile.write(Unknown Source)
at flex2.compiler.PersistenceStore.write(PersistenceStore.java: 154)
at flex2.compiler.API.persistCompilationUnits(API.java:4154)
at flex2.compiler.API.persistCompilationUnits(API.java:4133)
at flex2.tools.oem.internal.OEMUtil.save(OEMUtil.java:163)
at flex2.tools.oem.Application.save(Application.java:506)
at com.adobe.flexbuilder.multisdk.compiler.internal.ASBuilder.s aveState(ASBuilder.java:522)
at com.adobe.flexbuilder.multisdk.compiler.internal.ASItemBuild er.saveState(ASItemBuilder.java:94)
at com.adobe.flexbuilder.project.compiler.BuilderManager.maybeR emoveOldestBuilder(Unknown Source)
at com.adobe.flexbuilder.project.compiler.BuilderManager.getBui lder(Unknown Source)
at com.adobe.flexbuilder.project.compiler.internal.FlexIncremen talBuilder.preBuild(Unknown Source)
at com.adobe.flexbuilder.project.compiler.internal.FlexProjectB uilder.buildItem(Unknown Source)
at com.adobe.flexbuilder.project.compiler.internal.FlexProjectB uilder.build(Unknown Source)
at com.adobe.flexbuilder.project.compiler.internal.FlexIncremen talBuilder.build(Unknown Source)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildMan ager.java:633)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:170)
at org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:201)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildMan ager.java:253)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:256)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop (BuildManager.java:309)
at org.eclipse.core.internal.events.BuildManager.build(BuildMan ager.java:341)
at org.eclipse.core.internal.resources.Workspace.build(Workspac e.java:330)
at org.eclipse.ui.actions.GlobalBuildAction$1.run(GlobalBuildAc tion.java:182)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)



Someone who please be kind enough to help me out to get rid of this exception, I have been working on days in finding a solution for this. What I found in every place was asking to increase the memory for JVM, as you can see I have already done it at the eclipse.ini file, but the error popping up continuously.

Thanks a lot in advance
Dha


Re: java.lang.OutOfMemoryError on Eclipse [message #507094 is a reply to message #507088] Tue, 12 January 2010 02:45 Go to previous messageGo to next message
Eclipse UserFriend
dhammika251@yahoo.com wrote:
> Dear All,
> I am compiling a J2EE+Flex application on eclipse ganymede Version:
> 3.4.1 with the following eclipse.ini settings. (I am working on
> windows7 machine with 2GB Ram)
This looks like coming from "com.adobe.flexbuilder" and hence you should
report/ask there.

Dani
>
> -showsplash
> org.eclipse.platform
> --launcher.XXMaxPermSize
> 512M
> -framework
> plugins\org.eclipse.osgi_3.4.2.R34x_v20080826-1230.jar
> -vmargs
> -Dosgi.requiredJavaVersion=1.5
> -Xms1024m
> -Xmx1024m
> -XX:PermSize=512m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError
> -Djava.net.preferIPv4Stack=true
>
>
> But I have continuously happened to face for the following Memory out
> of bounce exception during compiling the application.
> An internal error occurred during: "Building Workspace".
> java.lang.OutOfMemoryError
>
>
> Following is the exception trace at <workspace>/.metadeta/.log file.
> eclipse.buildId=M20080911-1700
> java.version=1.6.0_11
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
> Command-line arguments: -os win32 -ws win32 -arch x86
>
> !ENTRY org.eclipse.core.jobs 4 2 2010-01-12 08:14:47.007
> !MESSAGE An internal error occurred during: "Building Workspace".
> !STACK 0
> java.lang.OutOfMemoryError
> at java.io.RandomAccessFile.writeBytes(Native Method)
> at java.io.RandomAccessFile.write(Unknown Source)
> at flex2.compiler.PersistenceStore.write(PersistenceStore.java: 154)
> at flex2.compiler.API.persistCompilationUnits(API.java:4154)
> at flex2.compiler.API.persistCompilationUnits(API.java:4133)
> at flex2.tools.oem.internal.OEMUtil.save(OEMUtil.java:163)
> at flex2.tools.oem.Application.save(Application.java:506)
> at com.adobe.flexbuilder.multisdk.compiler.internal.ASBuilder.s
> aveState(ASBuilder.java:522)
> at com.adobe.flexbuilder.multisdk.compiler.internal.ASItemBuild
> er.saveState(ASItemBuilder.java:94)
> at com.adobe.flexbuilder.project.compiler.BuilderManager.maybeR
> emoveOldestBuilder(Unknown Source)
> at com.adobe.flexbuilder.project.compiler.BuilderManager.getBui
> lder(Unknown Source)
> at com.adobe.flexbuilder.project.compiler.internal.FlexIncremen
> talBuilder.preBuild(Unknown Source)
> at com.adobe.flexbuilder.project.compiler.internal.FlexProjectB
> uilder.buildItem(Unknown Source)
> at com.adobe.flexbuilder.project.compiler.internal.FlexProjectB
> uilder.build(Unknown Source)
> at com.adobe.flexbuilder.project.compiler.internal.FlexIncremen
> talBuilder.build(Unknown Source)
> at org.eclipse.core.internal.events.BuildManager$2.run(BuildMan
> ager.java:633)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at org.eclipse.core.internal.events.BuildManager.basicBuild(Bui
> ldManager.java:170)
> at org.eclipse.core.internal.events.BuildManager.basicBuild(Bui
> ldManager.java:201)
> at org.eclipse.core.internal.events.BuildManager$1.run(BuildMan
> ager.java:253)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at org.eclipse.core.internal.events.BuildManager.basicBuild(Bui
> ldManager.java:256)
> at org.eclipse.core.internal.events.BuildManager.basicBuildLoop
> (BuildManager.java:309)
> at org.eclipse.core.internal.events.BuildManager.build(BuildMan
> ager.java:341)
> at org.eclipse.core.internal.resources.Workspace.build(Workspac
> e.java:330)
> at org.eclipse.ui.actions.GlobalBuildAction$1.run(GlobalBuildAc
> tion.java:182)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
>
> Someone who please be kind enough to help me out to get rid of this
> exception, I have been working on days in finding a solution for this.
> What I found in every place was asking to increase the memory for JVM,
> as you can see I have already done it at the eclipse.ini file, but the
> error popping up continuously.
> Thanks a lot in advance
> Dha
>
>
>
Re: java.lang.OutOfMemoryError on Eclipse [message #511639 is a reply to message #507094] Tue, 02 February 2010 06:13 Go to previous messageGo to next message
Eclipse UserFriend
Hello All,
I have just upgraded the RAM into 3GB and being used the following eclipse.ini

-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
1024M
-framework
plugins\org.eclipse.osgi_3.4.2.R34x_v20080826-1230.jar
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms512m
-Xmx800m
-XX:PermSize=512m
-XX:MaxPermSize=1024m
-XX:+HeapDumpOnOutOfMemoryError
-Djava.net.preferIPv4Stack=true

Still i am getting the above outofmemory exception and one thing i noticed is that, i am unable to increase ether of -XX:MaxPermSize or -Xmx values and if so i will be getting a Java internal error message saying "java virtual machine cant be started" while i am starting the eclipse, even though i have just increased my RAM..

Seems like i am not using the amount of RAM jst increased and bounded with the previous conditions ( with 2G ram )

Please be kind enough to share any thoughts on this..
Thankx
Dha
Re: java.lang.OutOfMemoryError on Eclipse [message #511725 is a reply to message #511639] Tue, 02 February 2010 06:32 Go to previous messageGo to next message
Eclipse UserFriend
This is an Eclipse newsgroup for Eclipse specific issues. Your errors are
coming from something that looks to be called flexbuilder that is apparently
a product of Adobe. You should contact the Adobe support channels for
flexbuilder.

"dhammikas" <dhammika251@yahoo.com> wrote in message
news:hk91co$u9j$1@build.eclipse.org...
> Hello All,
> I have just upgraded the RAM into 3GB and being used the following
> eclipse.ini
>
> -showsplash
> org.eclipse.platform
> --launcher.XXMaxPermSize
> 1024M
> -framework
> plugins\org.eclipse.osgi_3.4.2.R34x_v20080826-1230.jar
> -vmargs
> -Dosgi.requiredJavaVersion=1.5
> -Xms512m
> -Xmx800m
> -XX:PermSize=512m
> -XX:MaxPermSize=1024m
> -XX:+HeapDumpOnOutOfMemoryError
> -Djava.net.preferIPv4Stack=true
>
> Still i am getting the above outofmemory exception and one thing i noticed
> is that, i am unable to increase ether of -XX:MaxPermSize or -Xmx values
> and if so i will be getting a Java internal error message saying "java
> virtual machine cant be started" while i am starting the eclipse, even
> though i have just increased my RAM..
>
> Seems like i am not using the amount of RAM jst increased and bounded with
> the previous conditions ( with 2G ram )
>
> Please be kind enough to share any thoughts on this..
> Thankx
> Dha
Re: java.lang.OutOfMemoryError on Eclipse [message #511818 is a reply to message #511725] Tue, 02 February 2010 23:26 Go to previous messageGo to next message
Eclipse UserFriend
Thnks for the comment.
Yes of course, i am contacting flex guys on the previous exceptions came through flex builder..
But as i have mentioned latter, now i am having matters with increasing the java heap size on eclipse. Though i have upgraded the RAM form 2 to 3GB still eclipse behaves with the configurations used with 2G RAM, ie

--launcher.XXMaxPermSize
1024M
-vmargs
-Xms512m
-
-XX:PermSize=512m
-XX:MaxPermSize=1024m

What i am worrying about is that, why cant i increase -Xmx and XX:MaxPermSize some more, 1G of my RAM is still available, how can i config JVM on eclipse to increase these parameters?

Thnaks a lot for concerning and please share any thoughts.
best..
Re: java.lang.OutOfMemoryError on Eclipse [message #512445 is a reply to message #511818] Fri, 05 February 2010 02:59 Go to previous message
Eclipse UserFriend
Hi,

some Java VMs cannot handle more then a total of 2 GB of RAM.
Please note that a MaxPermSize of more then 256 is usually not
necessary. It will only hold references the class objects and string
literals which should not exceed the 256MB limit. If you reduce your
MaxPermSize, you will be able to increase the heap size XMX.

Hope that helps,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 03.02.10 05:26, schrieb dhammikas:
> Thnks for the comment. Yes of course, i am contacting flex guys on the
> previous exceptions came through flex builder.. But as i have mentioned
> latter, now i am having matters with increasing the java heap size on
> eclipse. Though i have upgraded the RAM form 2 to 3GB still eclipse
> behaves with the configurations used with 2G RAM, ie
> --launcher.XXMaxPermSize
> 1024M
> -vmargs
> -Xms512m
> - -XX:PermSize=512m
> -XX:MaxPermSize=1024m
>
> What i am worrying about is that, why cant i increase -Xmx and
> XX:MaxPermSize some more, 1G of my RAM is still available, how can i
> config JVM on eclipse to increase these parameters?
> Thnaks a lot for concerning and please share any thoughts. best..
Previous Topic:Accessing DB2 from Eclipse
Next Topic:classpath priority
Goto Forum:
  


Current Time: Sun Mar 16 06:46:02 EDT 2025

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

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

Back to the top