Skip to content

Commit e466a17

Browse files
committed
Reduce java memory options to 128M
These numbers were (and still are) a bit of a shot in the dark: 1. This cannot limit total process memory; it's technically a limit on the JVM's heap size, which will indirectly impact total process memory[1] 2. With the previous limit of 384M, it's suspected a fork operation would require double that (768M), which is already over the 512M engine-level limit Therefore, we're going to experiment with a lower, 128M limit. 1: http://stackoverflow.com/questions/1493913/how-to-set-the-maximum-memory-usage-for-jvm
1 parent 8a57a41 commit e466a17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ RUN npm install
2525

2626
USER app
2727

28-
ENV JAVA_OPTS="-Xms384m -Xmx384m"
28+
ENV JAVA_OPTS="-Xms128m -Xmx128m"
2929

3030
CMD ["/usr/src/app/bin/duplication"]

0 commit comments

Comments
 (0)