Archived Content: This information is no longer maintained and is provided "as is" for your convenience.
Summary
Superseeded by KM837249...
Error
The following error message occurs when launching a JNLP application using shell or systemutil from UFT 11.53 Patch 2:
'Error: Could not create the Java Virtual Machine
Error: A fatal exception has occurred. Program will exit.'
Cause
Not enough virtual memory to allocate for jvm.
Fix
To apply this fix, locate file %WINDIR%\mercury.ini file and add Memory_Defrag section, as follows:
[Memory_Defrag]
<process_name>.exe=Nnn
String Details:
process_name: The name of Java engine/AUT you are using.
Nnn: The amount of memory (in Mbytes) to grant for launching the AUT.
To grant 1024MB for a Java application launched by javaw.exe, you would add below in mercury.ini:
[Memory_Defrag]
javaw.exe=1024
javaw.exe=1024
To determine the amount of memory to grant for launching the AUT, the Process Explorer can be used:
- Run the AUT and the Process Explorer.
- Double-click on the process.
- On the process Properties dialog box, go to Performance tab.
- Check the Virtual Size of the Virtual Memory part.
For more information about Process Explorer, see Document ID KM00493648 - How to use Microsoft's Process Explorer?