Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » Java heap space Problem
Java heap space Problem [message #1752522] Tue, 24 January 2017 16:47 Go to next message
Wolfgang Trischnigg is currently offline Wolfgang TrischniggFriend
Messages: 27
Registered: April 2016
Junior Member
Hello!

Please help me! Smile

Everytime when I want to save my application or something else an error occurs:

org.eclipse.ui : Java heap space
Java heap space
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Unknown Source)
at java.io.ByteArrayOutputStream.grow(Unknown Source)
at java.io.ByteArrayOutputStream.ensureCapacity(Unknown Source)
at java.io.ByteArrayOutputStream.write(Unknown Source)
at sun.nio.cs.StreamEncoder.writeBytes(Unknown Source)
at sun.nio.cs.StreamEncoder.implWrite(Unknown Source)
at sun.nio.cs.StreamEncoder.write(Unknown Source)
at java.io.OutputStreamWriter.write(Unknown Source)
at org.eclipse.emf.ecore.xmi.impl.StringSegment.write(StringSegment.java:421)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.write(XMLSaveImpl.java:1016)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.save(XMLSaveImpl.java:261)
at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doSave(XMLResourceImpl.java:389)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(ResourceImpl.java:1430)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.saveOnlyIfChangedWithMemoryBuffer(ResourceImpl.java:1144)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(ResourceImpl.java:985)
at org.fordiac.systemmanagement.SystemManager.saveDiagram(SystemManager.java:881)
at org.fordiac.systemmanagement.SystemManager.saveSystem(SystemManager.java:1142)
at org.fordiac.ide.resourceediting.editors.ResourceDiagramEditor.doSave(ResourceDiagramEditor.java:385)
at org.eclipse.ui.internal.SaveableHelper$2.run(SaveableHelper.java:154)
at org.eclipse.ui.internal.SaveableHelper$5.run(SaveableHelper.java:283)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:466)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:374)
at org.eclipse.ui.internal.WorkbenchWindow$13.run(WorkbenchWindow.java:2157)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2153)
at org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:291)
at org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:269)
at org.eclipse.ui.internal.SaveableHelper.savePart(SaveableHelper.java:159)
at org.eclipse.ui.internal.WorkbenchPage.saveSaveable(WorkbenchPage.java:3915)
at org.eclipse.ui.internal.WorkbenchPage.saveEditor(WorkbenchPage.java:3929)
at org.eclipse.ui.internal.handlers.SaveHandler.execute(SaveHandler.java:54)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:294)

I'm using 1.8_M1. Can you please help me?
Upgrading to the new version is not an option for me Wink

Thanks a lot, Wolfgang

[Updated on: Tue, 24 January 2017 18:28]

Report message to a moderator

Re: Java heap space Problem [message #1752531 is a reply to message #1752522] Tue, 24 January 2017 18:45 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 667
Registered: January 2014
Senior Member
Hi Wolfgang,

first of all a strongly recomend you to upgrade to some stable 4diac 1.8.x version. M1 was an unstable preview for 1.8.0 and you shouldn't use it. If there are technical issues hindering you I'm happy to help you to sort them out.

Regarding your problem. Please have a look on this FAQ side [1] specifying how you can increase the heap size for Eclipse based applications like 4diac. I hope this helps.

[1] https://wiki.eclipse.org/FAQ_How_do_I_increase_the_heap_size_available_to_Eclipse%3F
Re: Java heap space Problem [message #1752570 is a reply to message #1752531] Wed, 25 January 2017 09:00 Go to previous message
Wolfgang Trischnigg is currently offline Wolfgang TrischniggFriend
Messages: 27
Registered: April 2016
Junior Member
Thank you Alois!

It seems that the instructions in the link helped to fix the problem.
To all other users, who will get this error, don't look for the eclipse.ini you must edit the 4DIAC-IDE.ini Wink

Best regards,
Wolfgang

P.s.: When I find some time, I will do an update.
Previous Topic:Downloading boot file using IEC 61499 Deployment Plug In
Next Topic:Raspberry SPS build
Goto Forum:
  


Current Time: Sun Nov 18 11:51:43 GMT 2018

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

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

Back to the top