HydrolienF/Formiko

Memory use (heap space)

Closed this issue · 1 comments

Java only ask for 1 go on my computer when it can have almost 16.
A way to avoid risk of "java.lang.OutOfMemoryError: Java heap space" is to give 2go as default max but allow 90% of PC memory if needed.
It can be done with "-XX:SoftMaxHeapSize=2G -XX:MaxRAMPercentage=90"

Find a way to add it to:

  • maven launcher
  • .sh / .bat launcher
  • .exe / .deb / .xxx (for max OS) launcher
    Test that heap is aviable:
  • On maven
  • On .sh local
  • On .sh downloaded
  • On .deb downloaded
  • On .msi downloaded

cf: https://www.baeldung.com/java-jvm-parameters-rampercentage

all tested