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 Internal error occurs during building workspace ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Internal error occurs during building workspace ?" Watch "Internal error occurs during building workspace ?" New topic
Author

Internal error occurs during building workspace ?

Prabhat Ranjan
Ranch Hand

Joined: Oct 04, 2006
Posts: 391
Hi,

I am using flex project i don't have any erros but when eclispe build the project its getting error:

Internal error occurs while building workspace and also one window with error:

An out of Memory error has occured. Consult the running ...with so and so..

I have done few configuration to increase heap size of the memory:

1) jre(java VM ) setting
2) eclispe.ini file setting
3) eclispe icon also i configured .

but after doing every thing i am getting this error after 84 % to 89 % project build.

how to find out the solution to build the project.

I have also killed few unused process running from task manager while build the project but no benifit.

prabhat



[Thumbnail for eclipse_error.jpg]

David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

You don't bother saying *what* you've changed for the VM or .ini file, so it's impossible to help. It's clear you're running out of memory.
Prabhat Ranjan
Ranch Hand

Joined: Oct 04, 2006
Posts: 391
My jre VM Setting is :

-Xms512M -Xmx1024M -XX:MaxPermSize=650M

and eclipse icon setting value is :

c:\eclipse\eclipse.exe -showlocation -vm "C:\Program Files\Adobe\Flex Builder 3 Plug-in\jre\bin\javaw.exe" -vmargs -Xms256M -Xmx1024M -XX:MaxPermSize=256M

and my eclipse.ini file setting is:

showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256M
-framework
plugins\org.eclipse.osgi_3.4.0.v20080605-1900.jar
-vm
C:\\Program Files\\Java\\jdk1.5.0_06\\jre\\bin\\client\\jvm.dll
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms1157m
-Xmx1157m
-Xss4m
-Djava.net.preferIPv4Stack=true
-Djava.net.preferIPv4Stack=true
-Djava.net.preferIPv4Stack=true
-Djava.net.preferIPv4Stack=true
-Djava.net.preferIPv4Stack=true
-Djava.net.preferIPv4Stack=true
-XX:MaxGCPauseMillis=10
-XX:MaxHeapFreeRatio=70
-XX:+UseConcMarkSweepGC

please correct me if i am doing any thing wrong and for the same configuration one of my members application is working fine.

Prabhat Ranjan
Ranch Hand

Joined: Oct 04, 2006
Posts: 391
yes i am running out of memory..its 2 GB memory in my machine..
Prabhat Ranjan
Ranch Hand

Joined: Oct 04, 2006
Posts: 391
java.lang.OutOfMemoryError is coming in error log file of eclispe with stack trace.


java.lang.OutOfMemoryError
at java.io.RandomAccessFile.writeBytes(Native Method)
at java.io.RandomAccessFile.write(Unknown Source)
at flex2.compiler.PersistenceStore.write(PersistenceStore.java:149)
at flex2.compiler.API.persistCompilationUnits(API.java:4124)
at flex2.tools.oem.internal.OEMUtil.save(OEMUtil.java:163)
at flex2.tools.oem.Application.save(Application.java:504)
at com.adobe.flexbuilder.multisdk.compiler.internal.ASBuilder.saveState(ASBuilder.java:522)
at com.adobe.flexbuilder.multisdk.compiler.internal.ASItemBuilder.saveState(ASItemBuilder.java:94)
at com.adobe.flexbuilder.project.compiler.BuilderManager.maybeRemoveOldestBuilder(Unknown Source)
at com.adobe.flexbuilder.project.compiler.BuilderManager.getBuilder(Unknown Source)
at com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.preBuild(Unknown Source)
at com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.buildItem(Unknown Source)
at com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.buildModules(Unknown Source)
at com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.build(Unknown Source)
at com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.build(Unknown Source)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:633)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:170)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:253)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:256)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:309)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:341)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:140)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:238)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

Use a larger value for -Xmx. Note that with a 32-bit JVM you might be limited to around 1.5GB max

Why did you set -Xmx1157m in eclipse.ini and then overwrite that with a smaller value (-Xmx1024m) in the command line for the eclipse icon?

Was that the entire stack trace? Usually there is some text the accompanies the OOME and that text indicates exactly what memory you are out of (each OOME type has a different solution).


JBoss In Action
Prabhat Ranjan
Ranch Hand

Joined: Oct 04, 2006
Posts: 391
this is one of the stack trace but all of them like this outofMemory heap related.

but all of them are related to them only like failed to grab the pixel at run time this is related to also .

any another suggestion please let me know....i will do the change accordingly also

thanks for your response...waiting for your suggestion.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

this is one of the stack trace but all of them like this outofMemory heap related.

but all of them are related to them only like failed to grab the pixel at run time this is related to also .

I am sorry, but I do not understand what you are saying.

any another suggestion please let me know....i will do the change accordingly also

thanks for your response...waiting for your suggestion.

Not sure how to answer this. I made a suggestion already yet you seem to be saying that you plan to make the change later and are still awaiting more suggestions. Why? You need to first make the suggested change and only if it does not work ask for more suggestions.
Prabhat Ranjan
Ranch Hand

Joined: Oct 04, 2006
Posts: 391
sorry to misunderstood you. Actually i will implement as you suggested but i replied you yesterday evening once i left from my office.

and today/Tom-arrow is office closed so once i go office then i can do implement.

this i only meant to say !

prabhat
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Internal error occurs during building workspace ?