Forum Discussion

chico-uspto's avatar
chico-uspto
Occasional Contributor
7 years ago

running SoapUI Pro automated script from command-line (testrunner.bat)

Good morning,

 

I am running my Ready! API (version 2.3) automated script using the command-line (testrunner.bat).

I would like to change the JAVA_OPTS variable and set a new value for -Xmx; I noticed that its value has a variable assign to it %READY_XMX%.  Do you know where is this value coming from or where this variable is set up?

 

Appreciate your help.

Regards,

/Chico

 

+++++++++++++++++++++

set JAVA_OPTS=-Xms128m -Xmx%READY_XMX% -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -XX:MaxPermSize=256m -Dsoapui.properties=soapui.properties

  • sonya_m's avatar
    sonya_m
    7 years ago

    Hi Chico,

     

    Here's the answer I got from our technical specialist:

     

    The Xmx value is auto-calculated on each TestRunner run based on the following rule: it's set to half of available RAM, but not more than 4 Gb.
    E.g.
    If you have 4 Gb, Xmx is set to 2 Gb
    if you 16 Gb of RAM, Xmx is set to 4Gb

     

    Does it answer your question?

  • chico-uspto's avatar
    chico-uspto
    Occasional Contributor

    Hi Technical team,  Any update on this question? I will appreciate your help. /Chico

    • sonya_m's avatar
      sonya_m
      SmartBear Alumni (Retired)

      Hi, Chico,

      I've consulted our technical specialists, and they've come up with the following solution:

       

       

      Does this work for you?

      • chico-uspto's avatar
        chico-uspto
        Occasional Contributor

        Hi Sonya_m,

         

        I had done and that is the way I currently executing the testrunner.bat.  But I thought that you can tell me from where READY_XMX parameter is getting it current value if I do not "rem" the line inside the testrunner.bat.

        My objective is to prevent other people open the testrunner.bat file to change the value of the READY_XMX parameter because they may unknowingly change other lines of the batch file.

         

        Can you ask your specialist contacts where READY_XMX  parameter gets its value without changing the testrunner.bat?

        Thank you for your help.

        /Chico