Hi,
The percentage parameter is specific to Advanced Installer Java Launcher. At the runtime, the launcher sets the maximum heap size of the JVM not to a fixed value (like -Xmx78M) but to a percent of the total physical memory of host machine (-Xmx50P <=> -Xmx1024M if the host machine will have 2GB of RAM).
So if you will use the 50% value on a machine with:
- 1 GB of RAM the maximum heap size will be set to 512M
- 2 GB of RAM the maximum heap size will be set to 1024M
The maximum heap size of a Java application is limited by three factors:
- the process data model (32-bit or 64-bit) and the associated operating system limitations,
- the amount of virtual memory available on the system,
- the amount of physical memory available on the system.
For a 32-bit process model, the maximum virtual address size of the process is typically 4 GB, though some operating systems limit this to 2 GB or 3 GB.
The size of the Java heap for a particular application can never exceed or even reach the maximum virtual address space of the process data model.
The maximum heap size is typically -Xmx3800m (1600m for 2 GB limits), though the actual limitation is application dependent.
Both Windows 2K and XP have a virtual address space memory limit per 32-bit process of 2GB.
You can find more about tunning the JVM from:
http://java.sun.com/performance/referen ... ction4.1.2
All the best,
Mihai
FOLLOW US
Get the latest news in Application Packaging