To enhance the Web Server's performance, perform the steps described in this section.
In server.xml, change the value of the attribute acceptorthreads present in <vs\> (virtual server) element to the number of CPUs on the machine hosting Web Server.
For example:
<VS id="https-siroe.com" connections="ls1" mime="mime1"aclids="acl1" urlhosts="<webserver hostname" acceptorthreads="<noofcpus\>" \> |
Add or set the following JVM options in the server.xml file of Web Server.
The following parameters determine the heap size of JVM
<JVMOPTIONS>-Xms/JVMOPTIONS> (approximate value according to the memory available)
<JVMOPTIONS>-Xmx /JVMOPTIONS>(approximate value according to the memory available)
<JVMOPTIONS>—XX: NewSize = <1/3rd of the heap allocated></JVMOPTIONS>
<JVMOPTIONS>-XXMaxNewSize =<1/3rd of the heap allocated></JVMOPTIONS>
The first option indicates Maximum heap size and the second option indicates Minimum heap size
It is recommended to have the same values for both the options.
Add the following JVM option
JVMOPTIONS -server /JVMOPTIONS
Set the following parameters for garbage Collection
JVMOPTIONS-XX:+UseParNewGC/ JVMOPTIONS
JVMOPTIONS-XX:ParallelGCThreads= number-of-CPUs/JVMOPTIONS
JVMOPTIONS-XX:+UseConcMarkSweepGC/ JVMOPTIONS