Specify JVM options on install? - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

dbrentw
Posts: 5
Joined: Thu Aug 16, 2007 7:34 pm

Specify JVM options on install?

Hello all. Newbie here.

Is it possible to allow JVM paramaters to be specified during install on a particular system? My specific issue is w/ the initial and maximum heap sizes of the JVM for an application I've developed. We need to be able to set the heap size very high for machines w/ lots of memory and low for machines w/ less memory. Currently, I only see one way to set these options statically before the install package is built.

Any ideas?

thanks
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

You can do this by specifying the attributes directly in the command line like this:
  • - in the "Dialogs" page you create a new dialog (or modify an existing one) and you insert an editbox which will get the initial heap size;
    - for the editbox, in the "Properties", page you set the "Property Name" to INITIAL (for example);
    - in the "Java Products" page, "Virtual Machine" tab, in the "JVM Parameters" field you add -Xms[INITIAL]M (you can add this by pressing the "..." button and in the "Other Option" section you write it in the "Command Line" field)
This will set the initial heap size to the value written in the editbox.

You can also do this for the maximum heap size with another editbox (which has the property MAXIMUM) and instead of -Xms you use -Xmx like this: -Xmx[MAXIMUM]M

Regards,
cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”