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