zalando-stups / docker-openjdk

DEPRECATED: Docker image with OpenJDK and Zalando CA
21 stars 14 forks source link

Possibility to set -Xms equal to -Xmx #25

Closed pkosiak closed 5 years ago

pkosiak commented 5 years ago

https://developer.jboss.org/thread/149559?_sscc=t

https://stackoverflow.com/questions/43651167/is-there-any-advantage-in-setting-xms-and-xmx-to-the-same-value

TLDR: Java will increase heap size until it reaches Xmx. But you can allocate maximum amount of memory from the start (Xms option) for performance reasons (e.g. avoid garbage collection).

hjacobs commented 5 years ago

:+1:

pkosiak commented 5 years ago

👍

pkosiak commented 5 years ago

👍