Forum Discussion

BA_Service_Haus's avatar
BA_Service_Haus
Regular Contributor
15 years ago

Running soapUi with remote desktop connection

Hi,

Version:

this error was found with version 3.6.1
Description:
When starting soapUI within a remote desktop connection I get the following error message

When using "soapui_pro.bat", soapUi starts perfectly without a problem, so there is a workaround for this part.

But when using testrunner.bat to run testcases without the GUI (what we do a lot), the following error message is printed to the command line, and no testcase will be executed:
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.


Is this problem known and can/will it be fixed by you?

Best regards
Nico
  • Hello,

    Hm... I wonder how much memory you have on machines which runs soapUI. This message means that it tries to allocate memory but it is failed. So, either do not have enough memory space or it is already allocated by some process. Try to decrease memory soapUI use for work. Look in soapUI*.vmloptions file, or in *.bat files for :

    -Xms<*>m -Xmx<*>m

    and decrease numbers next to them.

    Hope this helps,
    robert
  • BA_Service_Haus's avatar
    BA_Service_Haus
    Regular Contributor
    Hi Robert,

    thank you for answering.
    In general I'm not able to change memory usage of the test enviroment.
    So this may not be a proper solution.
    Also I'm sure that there is enough memory available, as I'm able to run multiple instances of soapUI (even different versions) with the correct settings.

    Then I found out, that in the soapUI*.vmoptions file the -Xmx value was 1200m when it was 1024 in the .bat files
    Maybe we could adapt the -Xmx value (-Xms seems not to be the problem) but I'm not sure if this would help, because the setting in testrunner.bat is already the same ("-Xmx 1024m").

    So my questions are:
    1) why can't I run one instance with -Xmx 1200m but 2 or more with -Xmx 1024m?
    2) how much (Xmx = extended?) memory do I have to reserve at least?
    3) why can I run the gui with -Xmx 1024m but not the testrunner.bat?

    Please see also the following screenshot, showing memory usage when running soapUI (-Xmx 1024m):


    Best regards
    Nico
  • The Xmx value is the maximum heapsize that the Java virtual machine will allocate. You could try reducing the Xms value when running from the command line, since that is the amount of memory allocated at the start.

    Try changing the -Xmx value in the testrunner.bat file to something like 768m to see if that makes a difference, and let us know!

    regards,

    /Ole
    eviware.com