Releasing memory during intensive tests
I am running intensive tests of web services:
- consuming 100 services
- each service is tested by 100 XML requests.
There is a test suite for each service and a test case inside the testsuite. Inside the test case the requests are loaded from the file system and sent to the target service in a loop. The tearDown script of the test case writes down the results into a file, so I do not need to keep the results afterwards.
During the tests memory usage of SoapUI goes higher and higher, usually SoapUI gets stuck around 2.5 GB. The Xmx JVM parameter is set to 4GB. There are still 7 GB available in the system. The utilization of CPUs is low.
I have appended the following code to the tearDown script of the test cases:
testRunner.results.each { it.discard() }
When I check the test steps in the log, they are discarded, so apparently the code does the job. However, I cannot see much impact on memory usage.
Do you have any advice what else to do to prevent SaopUI from choking? I have SoapUI 5.2.1 64bit, running on Windows 10 box.