Here are the recommended performance tuning settings for your environment to achieve optimal performance.
Procedure
Update Tomcat default threads.
Navigate to C:\Program Files\Apache Software Foundation\Tomcat 9.0\conf
Open the Server.xml file in Notepad. In Server.xml, search for the line 102 or <Connector protocol="org.apache.coyote.http11.Http11NioProtocol" maxThreads="150"
Change the max thread count to 800 (maxThreads=”800”).
Save the file.
Update JVM memory settings.
Navigate to C:\Program Files\Apache Software Foundation\Tomcat 9.0\bin and then run Tomcat8w.exe.
Select the Java tab.
Enter the following recommended values:
Initial memory pool: 4096 MB
Maximum memory pool: 4096 MB
Thread stack size: Leave this field empty
Select OK.
Stop and Start Tomcat.
Update database settings:
Update the Cost Threshold for Parallelism value:
Open SSMS connect to the instance, where SOA db is deployed.
Select the instance. Now, right-click on the instance and then select Properties.
Select the Advanced tab. In the Parallelism section, in the Cost Threshold for Parallelism box, change the default value from 5 to 25.
Ensure that statistics (sp_updatestats) is updated in the database.
It is recommended to move the transaction logs to a different drive to optimize disk I/O performance.