Skip to content

Commit 9c723ff

Browse files
committed
More heap memory for tomcat
1 parent 5f6891e commit 9c723ff

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

docker/backend/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ FROM tomcat:8
22
LABEL author="Maximiliano Osorio <[email protected]>" \
33
maintainer="Maximiliano Osorio <[email protected]>"
44
COPY build/disk-project*.war /usr/local/tomcat/webapps/disk-server.war
5+
COPY setenv.sh $CATALINA_HOME/bin/setenv.sh
6+
RUN chmod +x $CATALINA_HOME/bin/setenv.sh

setenv.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export JAVA_OPTS="$JAVA_OPTS -XX:InitialRAMPercentage=10 -XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80"

0 commit comments

Comments
 (0)