...
Code Block | ||
---|---|---|
| ||
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 |
...
Code Block |
---|
JAVA_OPTS=-Xms2048m -Xmx4096m -XX:+UseConcMarkSweepGC -XX:+DisableExplicitGC -XX:+UseCompressedOops -XX:NewRatio=1 |
Configuring server.xml
- 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.
- Add/update the
acceptorThreadCount, enableLookups,and maxThreads
attributes as shown in the following:Example:
Code Block <Connector URIEncoding="UTF-8" acceptorThreadCount="2" 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.
Locate the Valve element toward the bottom of the file.
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" /> -->
...
- Click Start > run > regedit.
Navigate to the following registry key:
Code Block HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
- Right-click “Parameters” and choose New > DWORD.
- Name the value "MaxUserPort" and update its value data to "7FA6" (hexadecimal) or "32678" (decimal).
- Right-click "Parameters" and choose New > DWORD.
- Name the value "TcpTimedWaitDelay" and update its value data to "1E" (hexadecimal) or "30" (decimal).
- Restart the machine for the changes to take effect.
...