SoapUI and Threads

SoapUI and Threads

SoapUI and Threads

 

In SoapUI, there’s a cap on the number of simultaneous threads that can be created by the test runners, set to 200 by default. However, this might cause some problems if it requires a large number of threads.  For instance, a very heavy load test.

If you aren’t getting as many threads as you are requesting, try increasing the thread pool cap. This cannot be done from inside SoapUI, but must done by changing options in files.

SoapUI and Threads: Increase thread cap by GUI

You can do this by editing the SoapUI -[version].vmoptions file. The .vmoptions file is located in your installation folder inside the /bin folder. Further, this is named according to version.  For instance, SoapUI-Pro-5.0.0.vmoptions. Add the line

-Dsoapui.threadpool.max=300

Increase thread cap by Batch file

The testrunner file (testrunner.bat or testrunner.sh) is located in your installation folder, inside the /bin folder. Add the line “-Dsoapui.threadpool.max=300”, at the end of the JAVA_OPTS section

Automated Load Tests

When doing automated load tests, the changes to JAVA_OPTS need to be done in the loadtestrunner file (loadtestrunner.bat or loadtestrunner.sh) is located in your installation folder, inside the /bin folder.

Add the line –

-Dsoapui.threadpool.max=300

at the end of the JAVA_OPTS section

Make your resume stand out and become a Certified SoapUI Testing Professional. Try free practice tests here!

A great career is just a certification away. So, practice and validate your skills to become a Certified SoapUI Testing Professional.

Monkey Testing
Performance Assertions in SoapUI

Get industry recognized certification – Contact us

keyboard_arrow_up
Open chat
Need help?
Hello 👋
Can we help you?