Welcome to yEd Q&A!
Here you can ask questions and receive answers from other members of the community and yEd developers. And you can tell us your most wanted feature requests.

Categories

yEd heapsize issue

0 votes
Hello,
 
I use yEd fairly often with an ever growing graph. The file is now just over 200mb and is giving me the bottom error. I get this once in a while as the graph increases but could usually get rid of it by increasing the heap size with Xmx and Xms. Unfortunately this isn't the case anymore. Upon attempting to open the file it will use up to 2170mb of ram and then give me the error no matter what size I set it to. Do you have any helpful hints?
 
Thanks
 
Edit: Here is the file in question
 
 
java.io.IOException
at com.yworks.A.B.W.ă(Unknown Source)
at com.yworks.A.B.W.ā(Unknown Source)
at com.yworks.A.J.A.ā(Unknown Source)
at com.yworks.A.J.A.ā(Unknown Source)
at com.yworks.A.J.A$A.Ă(Unknown Source)
at com.yworks.A.J.A.ā(Unknown Source)
at com.yworks.A.K.D.ā(Unknown Source)
at com.yworks.A.K.j.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at com.jidesoft.plaf.basic.BasicJideButtonListener.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Unknown Source)
at java.lang.AbstractStringBuilder.expandCapacity(Unknown Source)
at java.lang.AbstractStringBuilder.ensureCapacityInternal(Unknown Source)
at java.lang.AbstractStringBuilder.append(Unknown Source)
at java.lang.StringBuffer.append(Unknown Source)
at java.util.regex.Matcher.appendReplacement(Unknown Source)
at java.util.regex.Matcher.replaceAll(Unknown Source)
at java.lang.String.replaceAll(Unknown Source)
at y.H.B.J$A.ā(Unknown Source)
at y.H.B.J.ā(Unknown Source)
at y.H.B.D.l$C.ď(Unknown Source)
at y.H.B.D.l$C.ā(Unknown Source)
at y.H.B.D.l$B.ā(Unknown Source)
at y.H.B.D.y.Ă(Unknown Source)
at y.H.B.D.p.ā(Unknown Source)
at y.H.B.D.l$12.ā(Unknown Source)
at y.H.B.A.Ă(Unknown Source)
at y.H.B.A.ā(Unknown Source)
at y.H.B.A$37.ā(Unknown Source)
at y.H.B.B._.ā(Unknown Source)
at y.H.B.B._.ā(Unknown Source)
at y.H.B.B._$A.ā(Unknown Source)
at y.H.B.B.Q.ā(Unknown Source)
at y.H.B.B.Q.ā(Unknown Source)
at y.H.B.B.Q.ā(Unknown Source)
at y.H.B.B.Q.ā(Unknown Source)
at y.H.B.D.g.Ă(Unknown Source)
at y.H.B.B.X.ā(Unknown Source)
at y.H.B.B.Y.ā(Unknown Source)
at y.H.B.B.Y.Ă(Unknown Source)
at y.H.B.B.Y.ā(Unknown Source)
at y.H.B.B.Y.ā(Unknown Source)
 

 

in Help by (170 points)
edited by
Which version of yEd are you using?
Which version of Java is yEd running on?
(Both pieces of information are available in "Help" -> "About". Please include the information from "Java VM" line as well.)
Which operating system are you running yEd on?
Version 3.16
Java Version: 1.8.0_92
Windows 10.

1 Answer

0 votes

Finally found some time to look into this issue. Turns out your diagram needs roughly 2GB for loading. I.e. when starting yEd with

java -Xmx2048m -jar C:\Program Files\yWorks\yEd-3.16\yed.jar

and then using "File" -> "Open" as usual, I was able to successfully open your diagram. However, I did not have any custom node templates in yEd's palette when doing so. If you have all those images in the diagram in custom palette sections as well, then yEd will probably need up to twice as much memory. So, if you have images in the palette, remove them to reduce yEd's memory foot print.

Please note, assigning this much memory to a single process only works, if ...

  • you are running 64bit Windows 10 *,
  • you are running 64bit Java runtime environment, and
  • you have (quite a bit) more than 4GB physical RAM available (because 64bit Windows 10 already takes up 2GB of its own).


*) If you are running Windows, you need 64bit Windows. If you are running any other operating system, you will need a 64bit version of said operating system.

by [yWorks] (160k points)
Legal Disclosure | Privacy Policy
...