Skip to content

Commit

Permalink
More heap memory for tomcat
Browse files Browse the repository at this point in the history
  • Loading branch information
hvarg committed Dec 12, 2024
1 parent 5f6891e commit 9c723ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker/backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ FROM tomcat:8
LABEL author="Maximiliano Osorio <[email protected]>" \
maintainer="Maximiliano Osorio <[email protected]>"
COPY build/disk-project*.war /usr/local/tomcat/webapps/disk-server.war
COPY setenv.sh $CATALINA_HOME/bin/setenv.sh
RUN chmod +x $CATALINA_HOME/bin/setenv.sh
1 change: 1 addition & 0 deletions setenv.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export JAVA_OPTS="$JAVA_OPTS -XX:InitialRAMPercentage=10 -XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80"

0 comments on commit 9c723ff

Please sign in to comment.