Closed tkent closed 4 years ago
Sorry for the delay in merging this! Thanks for making these changes, they look great. As you requested, we're going to merge this into a new v2.2.4-1 branch since this adds new environment variables and memory management not supported in previous versions of the image.
Based on our experience running this image in k8s, a few changes to avoid over-consumption of resources (specifically memory)
Main changes:
-XX:+UseContainerSupport
argument to the java command, this avoids the common scenario where the JVM would consume more memory than allocated to it throughcgroups
.JVM_MAX_MEM
environment variable. Since Java 8u191, it's much better to use the nativeUseContainerSupport
feature. For folks that want to granularly manage the heap, they can useJVM_EXTRA_OPTS
Related changes:
v2.2.4-1