Skip to content

Commit 7dbd2ba

Browse files
committed
Fix Heroku deploy
1 parent 8543cda commit 7dbd2ba

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Dockerfile.web

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ ENV default_aws_value_challenge_11=$CHALLENGE_11_VALUE
3939
ENV BASTIONHOSTPATH="/home/wrongsecrets/.ssh"
4040
ENV PROJECTSPECPATH="/var/helpers/project-specification.mdc"
4141
ENV funnybunny="This is a funny bunny"
42-
# Keep memory usage within Heroku dyno limits.
43-
ENV JAVA_TOOL_OPTIONS="-XX:MaxRAMPercentage=60 -XX:InitialRAMPercentage=25 -XX:MaxMetaspaceSize=128m -XX:+UseSerialGC -XX:+ExitOnOutOfMemoryError"
42+
# Keep memory usage within Heroku dyno limits (512MB dyno).
43+
# Hard cap heap to 250M, metaspace to 60M, disable expensive GC, exit on OOM immediately.
44+
ENV JAVA_TOOL_OPTIONS="-Xmx250M -Xms128M -XX:MetaspaceSize=40M -XX:MaxMetaspaceSize=60M -XX:CompressedClassSpaceSize=32M -XX:+UseG1GC -XX:MaxGCPauseMillis=50 -XX:+ExitOnOutOfMemoryError -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp/heapdump.hprof"
4445
# Deploy WrongSecrets to Heroku
4546
COPY .github/scripts/ /var/helpers
4647
COPY src/test/resources/alibabacreds.kdbx /var/helpers

0 commit comments

Comments
 (0)