From 3a22af41bd09b25c462072f138a542ba4f9e4412 Mon Sep 17 00:00:00 2001 From: Matthew Piggott Date: Wed, 5 Oct 2022 12:42:26 -0400 Subject: [PATCH] NEXUS-35492 - Allow configuring install4j vm arguments (#25) --- nxrm-aws-resiliency/templates/deployment.yaml | 2 +- nxrm-aws-resiliency/values.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/nxrm-aws-resiliency/templates/deployment.yaml b/nxrm-aws-resiliency/templates/deployment.yaml index e17baa0..120b1fa 100644 --- a/nxrm-aws-resiliency/templates/deployment.yaml +++ b/nxrm-aws-resiliency/templates/deployment.yaml @@ -70,7 +70,7 @@ spec: - name: NEXUS_SECURITY_RANDOMPASSWORD value: "false" - name: INSTALL4J_ADD_VM_PARAMS - value: "-Xms2703m -Xmx2703m -XX:MaxDirectMemorySize=2703m -Dnexus.licenseFile=/nxrm-secrets/{{ .Values.secret.license.alias }} \ + value: "{{ .Values.deployment.container.env.install4jAddVmParams }} -Dnexus.licenseFile=/nxrm-secrets/{{ .Values.secret.license.alias }} \ -Dnexus.datastore.enabled=true -Djava.util.prefs.userRoot=${NEXUS_DATA}/javaprefs \ -Dnexus.datastore.nexus.jdbcUrl=jdbc:postgresql://${DB_HOST}:{{ .Values.deployment.container.env.nexusDBPort }}/${DB_NAME} \ -Dnexus.datastore.nexus.username=${DB_USER} \ diff --git a/nxrm-aws-resiliency/values.yaml b/nxrm-aws-resiliency/values.yaml index 6eba08e..3849961 100644 --- a/nxrm-aws-resiliency/values.yaml +++ b/nxrm-aws-resiliency/values.yaml @@ -25,6 +25,7 @@ deployment: env: nexusDBName: nexus nexusDBPort: 3306 + install4jAddVmParams: "-Xms2703m -Xmx2703m" requestLogContainer: image: repository: busybox