rabies (53) [Avatar] Offline
#1
-Xms<size>

Sets the minimum heap size.

In production, set the min and max heap sizes to the same value.

source: pg. 386

Why must the min and max heap sizes be set to the same value in production?
javidjamae (28) [Avatar] Offline
#2
Re: JVM tuning (heap min/max size settings)
Setting them to the same value prevents the JVM from having to spend time allocating more memory and growing the heap. Setting them to the same will cause the JVM to allocate the max up front.
rabies (53) [Avatar] Offline
#3
Re: JVM tuning (heap min/max size settings)
thanks!