Open philCryoport opened 9 months ago
You need more memory or a different IDE. Pixels take a lot of heap in Java. Also try to disable cache and scaling
You need more memory or a different IDE. Pixels take a lot of heap in Java. Also try to disable cache and scaling
So @krasa you're saying that the ability to zoom using remote rendering isn't possible?
PS adjusting for what you said above, here's what my PlantUML settings now look like:
I'll also note that with "SVG Preview OFF, Remote Rendering ON", when I click the zoom + / - buttons in the PlantUML Preview window, the PlantUML plugin is calling my Localhost PlantUML PicoWeb instance -- but still, the displayed Sequence Diagram is not zooming in or out...
Now I'm curious:
Is the remote render request returning a PNG or a SVG?
PlantUML PicoWeb does not zoom, you can do it only by source code.
@startuml
scale 101000*901000
...
It returns SVG for SVG Preview, otherwise PNG.
Zooming SVG should work.
There also might be a memory leak if your heap stays full
Easily diagnosable with https://eclipse.dev/mat/ I will do something about that one:
Hi @krasa
As I've set the PLANTUML limit to 16384, I used:
scale 16384x16384
It now fills the entire width of my 3360x1890 43" monitor. Much easier to read now! :)
I just enabled "Show Memory Indicator". Here's all "memory" Actions:
I've actually been monitoring the heap with VisualVM -- trying to prevent the OOM's by clicking the "Perform GC" when it gets too high. I recently restarted IntelliJ, so here's where we stand at this moment:
Just ordered a GC as it was getting close to the 5192M Xmx limit I imposed on IntelliJ:
That looks fine.
But you can try a new build if you like: plantuml4idea-7.6.0-IJ2023.2.zip
trying to prevent the OOM's by clicking the "Perform GC" when it gets too high.
that does not prevent OOM imho - it gets that high by design, some say it is possible but unlikely https://stackoverflow.com/a/8719124
trying to prevent the OOM's by clicking the "Perform GC" when it gets too high.
that does not prevent OOM imho - it gets that high by design, some say it is possible but unlikely stackoverflow.com/a/8719124
Thank you @krasa for the above. I need to complete my diagram ASAP so I'll try out the new build after I get that done.
Hi! I build enormous sequence diagrams in PlantUML -- my current diagram is 375 lines and counting.
Trying to render that with the plugin's own PlantUML jar -- or with an external PlantUML jar (installed with MacOS Homebrew) -- very quickly pushes IntelliJ to report Out Of Memory errors.
So I run
I then configure the PlantUML4Idea plugin to remote render using
http://127.0.0.1:8080
-- and voila! I get sequence diagrams in the PlantUML preview window which appear to be generated by my localhost PlantUML PicoWeb instance.However, I still get Out Of Memory Errors with IntelliJ with the "SVG Preview" feature enabled -- apparently that seems to use IntelliJ heap -- so I have to turn off SVG Preview to stop those Out Of Memory errors.
The result of "⬛️ SVG Preview ☑️ Remote Rendering"?
IntelliJ memory is fine, but the diagram in the PlantuML preview window will not allow me to zoom in or out -- and with a resulting image that is 4880x11434, the writing is tiny.
I will note that I've tried adding the
-tsvg
option to thejava
line above. Doesn't make a difference.Help?
Here's the result of my "About IntelliJ Idea" window: