diff --git a/.deploy/nais/app-preprod.yaml b/.deploy/nais/app-preprod.yaml index f5ad1e5555f..d6697350e21 100644 --- a/.deploy/nais/app-preprod.yaml +++ b/.deploy/nais/app-preprod.yaml @@ -133,8 +133,6 @@ spec: env: - name: SPRING_PROFILES_ACTIVE value: preprod - - name: JAVA_OPTS - value: "-XX:MinRAMPercentage=25.0 -XX:MaxRAMPercentage=75.0 -XX:+HeapDumpOnOutOfMemoryError" kafka: pool: nav-dev strategy: diff --git a/.deploy/nais/app-prod.yaml b/.deploy/nais/app-prod.yaml index cf2ac166962..5ca7c59bf1c 100644 --- a/.deploy/nais/app-prod.yaml +++ b/.deploy/nais/app-prod.yaml @@ -166,8 +166,6 @@ spec: env: - name: SPRING_PROFILES_ACTIVE value: prod - - name: JAVA_OPTS - value: "-XX:MinRAMPercentage=25.0 -XX:MaxRAMPercentage=75.0 -XX:+HeapDumpOnOutOfMemoryError" kafka: pool: nav-prod strategy: diff --git a/Dockerfile b/Dockerfile index 3671985a8d6..d3289195367 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,5 +9,5 @@ WORKDIR /app ENV APP_NAME=familie-ba-sak ENV TZ="Europe/Oslo" # TLS Config works around an issue in OpenJDK... See: https://github.com/kubernetes-client/java/issues/854 -ENTRYPOINT [ "java", "-Djdk.tls.client.protocols=TLSv1.2", "-jar", "/app/app.jar" ] +ENTRYPOINT [ "java", "-Djdk.tls.client.protocols=TLSv1.2", "-XX:MinRAMPercentage=25.0", "-XX:MaxRAMPercentage=75.0", "-XX:+HeapDumpOnOutOfMemoryError", "-jar", "/app/app.jar" ]