diff --git a/ws.Dockerfile b/ws.Dockerfile index a901e47f44ec4afa75cedea57e7245475d0c0bf1..18791c46df30ac54aa66b8757d48d03bf3cee5a0 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";