cancel
Showing results for 
Search instead for 
Did you mean: 

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

SOLVED
Highlighted
Occasional Contributor

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

1 ACCEPTED SOLUTION

Accepted Solutions
Moderator

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

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?

Sonya Mihaljova
Assistant Community Manager
5 REPLIES 5
Occasional Contributor

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

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

Moderator

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

Hi, Chico,

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

 

2018-07-27_1156.png

 

Does this work for you?

Sonya Mihaljova
Assistant Community Manager
Occasional Contributor

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

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

 

Moderator

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

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?

Sonya Mihaljova
Assistant Community Manager
Occasional Contributor

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

Hi Sonya, 

 

Great! Yes, your response answered my question.

Your help is appreciated.

Thank you for the information and your time.

/Chico

New Here?
Join us and watch the welcome video:
API Testing Mistake #2
APITestingMistake#2