Skip to content

Commit

Permalink
Merge pull request #2049 from NCEAS/feature-1666-misc-k8s-fixes
Browse files Browse the repository at this point in the history
add note about -XX:+UseG1GC
  • Loading branch information
artntek authored Jan 13, 2025
2 parents 7136815 + 276e215 commit ea0aeef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ setTomcatEnv() {
################################
## MEMORY MANAGEMENT
################################
## Garbage-First garbage collector is the default (Java17+), so don't need to set -XX:+UseG1GC
## see:
## https://docs.oracle.com/en/java/javase/17/gctuning/garbage-first-g1-garbage-collector1.html
##
MEMORY=""
if [[ -z ${TOMCAT_MEM_MIN} ]] || [[ -z ${TOMCAT_MEM_MAX} ]]; then
echo "tomcat max or min memory size not found; skipping memory settings"
Expand Down

0 comments on commit ea0aeef

Please sign in to comment.