From b244e1990b68fe24a3d9016dff7bf9be0e3fe90a Mon Sep 17 00:00:00 2001
From: Brandon Clayton <bclayton@usgs.gov>
Date: Thu, 25 Mar 2021 10:32:46 -0600
Subject: [PATCH] add Xms and Xmx

---
 ws.Dockerfile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ws.Dockerfile b/ws.Dockerfile
index a901e47f4..18791c46d 100644
--- a/ws.Dockerfile
+++ b/ws.Dockerfile
@@ -55,6 +55,8 @@ ARG project
 ENV PROJECT ${project}
 ENV CONTEXT_PATH "/"
 ENV BASIN_SERVICE_URL "https://staging-earthquake.usgs.gov/nshmp/ws/data/basin"
+ENV JAVA_XMX="8g"
+ENV JAVA_XMS="2g"
 
 WORKDIR /app
 
@@ -65,6 +67,8 @@ VOLUME [ "/models" ]
 EXPOSE 8080
 
 ENTRYPOINT java -jar "${PROJECT}.jar" \
+    "-Xms${JAVA_XMS}" \
+    "-Xmx${JAVA_XMX}" \
     "-Dmicronaut.server.context-path=${CONTEXT_PATH}" \
     --basin-service-url="${BASIN_SERVICE_URL}" \
     --models="/models";
-- 
GitLab