Error: Could not create the Java Virtual Machine

  • KM00994644
  • 11-Jun-2014
  • 25-Jun-2015

Archived Content: This information is no longer maintained and is provided "as is" for your convenience.


Superseeded by KM837249...


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.'


Not enough virtual memory to allocate for jvm.


To apply this fix, locate file %WINDIR%\mercury.ini file and add Memory_Defrag section, as follows:
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:
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?