Setting the JVM Heap Size at Runtime
Summary
How to set the JVM heap size from the command line.Synopsis
Setting the initial and maximum JVM heap size from the command line can be performed in InstallAnywhere 2015 and later. To set the JVM heap size from the command line, follow the steps below.Discussion
- To set the initial JVM heap size, at the command line, enter:
- <installer_name> -jvmxms <size>
- To set the maximum JVM heap size, at the command line, enter:
- <installer_name> -jvmxmx <size>
install.exe -jvmxmx 25m
Related KB Articles
Increase the Java Heap Size Memory Allocation for InstallAnywhere IDE and InstallerSetting the Heap Size for a Launcher
Additional Information
Depending on whether your JVM supports the _JAVA_OPTIONS environment variable, you can set the JVM heap size to the environment variable immediately before launching your installer. For example, on Windows you can run the following commands to set the maximum heap size to 100 MB:- ?set _JAVA_OPTIONS="-Xmx100M"
- install.exe
Was this helpful?
© 2026 Flexera. All rights reserved.