How do I change the maximum heap size of the JVM?
In some cases, the default amount of memory allocated to the JVM in which SOAtest runs may need to be increased when dealing with large test suites or complex scenarios.
SOAtest 9.x and 6.x:
32-bit versions use 896MB by default.
64-bit versions use 1792MB by default - 896MB if using SOAtest <9.4
To increase the maximum heap size, pass a -J-Xmx argument to the soatest executable.
For example, "soatest -J-Xmx1400m" would start SOAtest with the maximum heap size set to 1400MB.
Windows versions use half the total amount of RAM by default.
Unix versions (including Mac OS X) use 512MB by default.
To increase the maximum heap size on Windows, pass a -J-Xmx argument to the loadtest or lt executable.
For example, "loadtest -J-Xmx1400m" would start Load Test with the maximum heap size set to 1400MB.
To increase the maximum heap size on Unix, edit the "loadtest" startup script. Edit the Xmx value in the "exec $JAVA" line toward the bottom of the file.
Change "-Xmx512m" to "-Xmx1024m" or more.
Other JVM arguments can be configured in similar way. Each JVM argument must be prefixed with "-J" when passed to the soatest executable. Multiple JVM arguments can be passed together with each argument prefixed with with "-J". For example, "soatest -J-Xmx1400m -J-Xms1024m" sets the max heap size to 1400MB and the starting heap size to 1024MB. Detail about JVM arguments can be found here:
important note for 32-bit versions of SOAtest and Load Test on Microsoft Windows:
If there is a sufficient amount of free memory available, the maximum heap size can be set up to but usually no higher than 1400MB because of a memory limitation for 32-bit processes in Microsoft Windows. Please refer to the Java HotSpot VM FAQ for more details: http://www.oracle.com/technetwork/java/hot...l#gc_heap_32bit
The maximum heap size, by default, is set to half the total amount of RAM on Windows and 256MB on Linux.
To increase the maximum heap size on Windows:
- Start SOAtest from the command line with the following arguments (or modify the shortcut which points to the SOAtest executable):
To increase the maximum heap size on Linux:
- Edit the "soatest" startup script at the end of the file on the following line:
exec $JAVA -Xbootclasspath/p:$SOATEST/xalan.jar -Xmx256m -classpath $CLASSPATH -Dinstall.root=$SOATEST -Dtemp=/tmp webtool.app.WebtoolApp -config SOAtest.cfg "[email protected]"
Change "-Xmx256m" to "-Xmx512m" or more.
In this example, 512 represents the amount of megabytes allocated to the JVM, but this can be a larger value depending on your system resources.