There is a default size for tomcat memory augmentation

1

Hello, is there a standard size for increasing tomcat memory, using the XmX and XmS parameters?

    
asked by anonymous 03.08.2015 / 21:07

1 answer

2

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.

  • Xms value should not be less than 1m, default is 2m.
  • Xmx the maximum value is 2G in jvm's in 32 bit architecture, the default is 64m.

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.

    
06.08.2015 / 02:02