From 4958faec78dd26f116eee874d35c94e0a881c826 Mon Sep 17 00:00:00 2001 From: John Pignata Date: Fri, 13 Nov 2015 16:53:49 -0500 Subject: [PATCH] Set JVM heap size options We're seeing the duplication engine being killed for memory consumption in production while analyzing medium-sized repositories. This change sets an initial and maximum heap space of 384MB. This will keep us under the memory limit while leaving additional working memory for other processes. --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 788d1789..940c2ac4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,4 +25,6 @@ RUN npm install USER app +ENV JAVA_OPTS="-Xms384m -Xmx384m" + CMD ["/usr/src/app/bin/duplication"]