1

when converting a Java Application to an executable using exe4j, I want the exe to use as much memory as I assigned to the Application (1024MB). However, the executable only assigns 248MB and I'd like to know how to change that in exe4j?

thx in advance for your help

Benjamin
  • 10,603
  • 3
  • 16
  • 28

1 Answers1

1

Memory management is not influenced by exe4j. exe4j is just a native Java launcher generator, the JVM runs normally after than and -Xmx or -Xms VM parameters work as they do with other launchers.

Ingo Kegel
  • 46,523
  • 10
  • 71
  • 102
  • Thanks Ingo. Then why does the executable feature a maximum of 248MB while the Java Application it came from uses the desired 1024MB? Any idea? thx in advance... – Benjamin Jan 30 '15 at 11:37
  • You can use -Xms instead of -Xmx to reserve all memory upfront – Ingo Kegel Jan 30 '15 at 15:46
  • Thx again, Ingo. However, neither "-Xms512m" nor "-Xms512m -Xmx512" does change anything. The executable always works with 248MB. Is it to do with the fact that I write those commands into the .bat file of the Java Application? – Benjamin Feb 02 '15 at 07:01
  • -Xms512m is for the "VM parameters" text field in the "Java invocation" step. When calling the executable, pass -J-Xms512m – Ingo Kegel Feb 02 '15 at 08:43