When you start the JVM, you can set it’s initial heap memory size using the -Xms switch. You can set it to the same value as its maximum memory size (-Xmx). This means that the JVM never needs to resize and reallocate the heap memory while Tomcat is trying to serve requests.
