Add or set the following JVM options in the server.xml file of Web Server.
JVMOPTIONS-Xms(approx value according to the memory available)/JVMOPTIONS
JVMOPTIONS-Xmx(approx value according to the memory available)/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