Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Commit 4958fae

Browse files
committed
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.
1 parent f5da437 commit 4958fae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,6 @@ RUN npm install
2525

2626
USER app
2727

28+
ENV JAVA_OPTS="-Xms384m -Xmx384m"
29+
2830
CMD ["/usr/src/app/bin/duplication"]

0 commit comments

Comments
 (0)