Closed SlavaVedernikov closed 6 months ago
Hi @SlavaVedernikov
I found the problem. It is !pragma teoz true
. I use the !pragma teoz true
that the sequence diagram supports multiple boundaries too.
E.g. in your case with the !pragma teoz true
(default of C4_Squenece.puml) your components/participants look like below (incl. "Order API" boundary)
Without teoz (or in our case an additional !pragma teoz false
) they look like below ("Order API" boundary is lost).
If you don't need the overall boundary then you can simply fix it with an !pragma teoz false
line after the include.
@startuml
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Sequence.puml
'following fixes your memory problem
!pragma teoz false
Best regards Helmut
PS.: I entered an issue in forum, but I'm not sure if we can get a fix
Hi @SlavaVedernikov,
a second alternative could be that you increase the available memory, e.g. start the tool with 8GB like
java -Xms8192m -Xmx8192m -jar plantuml.jar "YOUR_FILE.puml"
but then the build is very slow (I checked it on my machine and the C4-Stdlib version requires ~1min40sec instead of ~5sec if you build it without teoz)
BR Helmut
Hi @kirchsth
Thank you for investigating this.
I think I'll stick with !pragma teoz false
for now.
Thanks, Slava
Not sure yet, but we might might want to add "does not always play well with teoz" to the docs "somewhere".
The root cause of this issue has been identified: https://github.com/plantuml/plantuml/pull/1777#issuecomment-2118408574
We will commit the fix in the incoming days. Thanks!
I'm generating C4-PlantUML diagrams as output from my own framework, and it works great in general. thank you.
I'm having issues with some Sequence diagrams though. Java throws an OutOfMemoryError.
Here is an example of the Sequence diagram that does not render.
...and here is the same diagram written just in PlantUML, which renders successfully.
Please let me know if I'm doing something unexpected/wrong etc. ...or maybe it's a bug (?)