Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space FUNCTDEV and version SVC2025.2

...

This can also be done from the Continuous Testing Platforms Servers Page for headless deployments.

AI Tools Affect Performance

Be aware that LLM-enabled tools such as AI Assertor and AI Data Bank can negatively affect performance and are not recommended for use when high performance is desired.

Anchor
Tomcat
Tomcat
Tomcat Configurations

...

Anchor
ConfiguringSystemProperties
ConfiguringSystemProperties
Configuring System Properties

...

Set JVM properties on start-up to increase the heap memory (at least 4gb) and change the garbage collector. Also set a property to disable per-row hit statistics so CTP can better track hit statistics when Virtualize is under load.

For Virtualizecli:

Code Block
languagexml
virtualizecli.sh -startServer -data <WORKSPACE_LOCATION> -J-Xms2048m -J-Xmx4096m -J-server -J-XX:+UseConcMarkSweepGC -J-XX:+DisableExplicitGC -J-XX:+UseCompressedOops -J-XX:NewRatio=1 -J-Dparasoft.server.statistics.datasource.row.disabled=true

For WAR deployment (configured in the setenv file located in the <TOMCAT_HOME>/bin/ directory):

Code Block
JAVA_OPTS=-Xms2048m -Xmx4096m -XX:+UseConcMarkSweepGC -XX:+DisableExplicitGC -XX:+UseCompressedOops -XX:NewRatio=1 -Dparasoft.server.statistics.datasource.row.disabled=true

Java 17

Set JVM properties on start-up to increase the heap memory (at least 4GB) and disable 4GB) and disable explicit garbage collection. Also set a property to disable per-row hit statistics so CTP can better track hit statistics when Virtualize is under load.

For Virtualizecli:

Code Block
virtualizecli.sh -startServer -data <WORKSPACE_LOCATION> -J-Xms2048m -J-Xmx4096m -J-server -J-XX:+DisableExplicitGC -J-Dparasoft.server.statistics.datasource.row.disabled=true

...

Code Block
JAVA_OPTS="-Xms2048m -Xmx4096m -XX:+DisableExplicitGC" -Dparasoft.server.statistics.datasource.row.disabled=true

Configuring server.xml

  1. Locate the HTTP Connector element in the server.xml file located under the <TOMCAT_HOME>/conf folder. The default connector port is 9080 for virtualizecli and 8080 for a WAR deployed in Tomcat.
  2. Add/update the enableLookups and maxThreads attributes as shown in the following:

    Example:

    Code Block
    <Connector URIEncoding="UTF-8" connectionTimeout="20000" enableLookups="false" maxThreads="750" name="default" port="9080" protocol="HTTP/1.1" redirectPort="9443" server="Parasoft Server"/>

    This tells Tomcat to keep a processing thread pool of 750 threads. It also sets the acceptor thread count to 2 and disables DNS lookups.

  3. Locate the Valve element toward the bottom of the file.

  4. Comment out the Valve element as shown in the following:
    Example:

    Code Block
    <!--<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false" /> -->

...