Forum Discussion

krenevla's avatar
krenevla
Contributor
12 years ago

optimal memory settings for following setup

Hello there,
I would like to ask You if following memory settings are optimal regarding to how my tests looks like.

- I run my tests on "headless" Debian Linux system using testRunner.sh
- right now, I execute just one Test Suite with three Test Cases executed in parallel way. But these "Test Cases" are highly modularized and I am using ~50 MB of additional JARs (my own Groovy library, Selenium stuff, Oracle driver etc..).
- I run testRunner with following parameters
-Xms512m -Xmx512m -XX:MaxPermSize=512m


When my tests are running, testRunner produces many threads (as can be seen on attached picture)



And my question is - are my "test runner memory settings" safe enough regarding to total available memory and number of threads which are generated? As can be seen from picture, system has only 4GB of RAM but just 15% is used right now.

And why there are so many threads? I guess each "run TestCase" step generates additional thread but why there are so many? I execute just three "tests" in parallel so why there are not just three threads?

Thank You and sorry if my question is not clear at all

3 Replies

  • Hello,

    I would recommend to take a look at the link below. SoapUI can be a bit of a memory consumer(at least you are running headless). If you follow the instructions on the link below, I think you should be ok as is, but to be on the safe side you can follow steps in the link. If you have further questions please let me know.

    http://www.soapui.org/Working-with-soap ... usage.html

    Regards,
    Temil
  • I have of course saw this page but I wanted to know your opinion on how to set jvm memory settings regarding to way how my tests are written (much modularized, lot of groovy) and test server capabilities.

    I wanted to know if these sleeping threads are danger or soapui can handle memory management well (if I don't have to be worried with 200 threads soapui generated) and so on.

    just what settings I should set for this setup, as thread name says
    If it is not possible to give advice here, then ok, I'll just try to set in as good as I can and then I'll see...
  • Unfortunately it's tough to give advice since while I understand your tests are modularized, that still wouldn't tell us how heavy it is on memory.

    I personally set xms pretty low since then the program won't take much memory on startup. But I increase xmx value to avoind "OutOfMemory" errors. But again, these preferences would differ per application and need.

    Michael Giller
    SmartBear Software