From 4f2076f3a595a0a3af6884ae2704e97159bc263e Mon Sep 17 00:00:00 2001 From: "Mr.W" Date: Sat, 5 Mar 2022 13:08:43 +0800 Subject: [PATCH] fix: fixed jvm startup args fix: fixed jvm startup args not suitable for container environment --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c53a795c..772b74d7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -78,6 +78,6 @@ VOLUME ${NEXUS_DATA} EXPOSE 8081 USER nexus -ENV INSTALL4J_ADD_VM_PARAMS="-Xms2703m -Xmx2703m -XX:MaxDirectMemorySize=2703m -Djava.util.prefs.userRoot=${NEXUS_DATA}/javaprefs" +ENV INSTALL4J_ADD_VM_PARAMS="-XX:InitialRAMPercentage=80.0 -XX:MinRAMPercentage=80.0 -XX:MaxRAMPercentage=80.0 -XX:MaxDirectMemorySize=2703m -Djava.util.prefs.userRoot=${NEXUS_DATA}/javaprefs" CMD ["sh", "-c", "${SONATYPE_DIR}/start-nexus-repository-manager.sh"]