Hello, is there a standard size for increasing tomcat memory, using the XmX and XmS parameters?
Hello, is there a standard size for increasing tomcat memory, using the XmX and XmS parameters?
There is a recommended standard for increasing tomcat memory, as you know, the increase is by editing the Xms and Xmx parameters, which will be passed to the JVM at the time of server startup. Regarding the values used by jvm, the following details should be taken into account:
1 - Values passed for Xms (Initial Memory Allocation) and Xmx (Maximum Memory Allocation) must be multiples of 1024.
Values can be passed in bytes, kbytes and Mbytes in the format:
-Xms6291456
-Xms6144k
-Xms6m
2 - For Tomcat, a good rule for you to adopt is this:
The maximum memory value (Xmx) must be equal to or twice the initial value (Xms);
Ex:
-Xms256m
-Xmx512m
I usually use twice as much.