简体   繁体   中英

launch4j: Override Default JVM Heap Size via Command Line

In the launch4j configuration for my Java application I have set values for the min. and max. heap size. This works fine, however, for some users it makes sense to override these parameters with other values. Is it possible with launch4j to have "default" settings for the min. and max. heap size, but still allow the user to override these settings via command line parameters?

You can specify memory settings in an .ini file next to the executable, however this will only work if you don't already specify memory inside the launch4j configuration.

http://launch4j.sourceforge.net/docs.html#Runtime_options

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM