Skip to content

Commit

Permalink
Change ReservedCodeCacheSize to 640m
Browse files Browse the repository at this point in the history
  • Loading branch information
kir committed Oct 17, 2022
1 parent 4e0a3f3 commit 5d79468
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion configs/linux/Server/Ubuntu/Ubuntu.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ ENV TEAMCITY_DATA_PATH=/data/teamcity_server/datadir \
TEAMCITY_DIST=/opt/teamcity \
TEAMCITY_LOGS=/opt/teamcity/logs \
CATALINA_TMPDIR=/opt/teamcity/temp \
TEAMCITY_SERVER_MEM_OPTS="-Xmx2g -XX:ReservedCodeCacheSize=350m" \
TEAMCITY_SERVER_MEM_OPTS="-Xmx2g -XX:ReservedCodeCacheSize=640m" \
LANG=C.UTF-8

EXPOSE 8111
Expand Down
2 changes: 1 addition & 1 deletion configs/linux/Server/UbuntuARM/UbuntuARM.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ ENV TEAMCITY_DATA_PATH=/data/teamcity_server/datadir \
TEAMCITY_DIST=/opt/teamcity \
TEAMCITY_LOGS=/opt/teamcity/logs \
CATALINA_TMPDIR=/opt/teamcity/temp \
TEAMCITY_SERVER_MEM_OPTS="-Xmx2g -XX:ReservedCodeCacheSize=350m" \
TEAMCITY_SERVER_MEM_OPTS="-Xmx2g -XX:ReservedCodeCacheSize=640m" \
LANG=C.UTF-8

EXPOSE 8111
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ ENV JRE_HOME="C:\Program Files\Java\OpenJDK" \
CATALINA_TMPDIR="C:\TeamCity\temp" \
TEAMCITY_LOGS="C:\TeamCity\logs" \
TEAMCITY_DATA_PATH="C:\ProgramData\JetBrains\TeamCity" \
TEAMCITY_SERVER_MEM_OPTS="-Xmx2g -XX:ReservedCodeCacheSize=350m"
TEAMCITY_SERVER_MEM_OPTS="-Xmx2g -XX:ReservedCodeCacheSize=640m"

EXPOSE 8111

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ ENV JRE_HOME="C:\Program Files\Java\OpenJDK" \
CATALINA_TMPDIR="C:\TeamCity\temp" \
TEAMCITY_LOGS="C:\TeamCity\logs" \
TEAMCITY_DATA_PATH="C:\ProgramData\JetBrains\TeamCity" \
TEAMCITY_SERVER_MEM_OPTS="-Xmx2g -XX:ReservedCodeCacheSize=350m"
TEAMCITY_SERVER_MEM_OPTS="-Xmx2g -XX:ReservedCodeCacheSize=640m"

EXPOSE 8111

Expand Down
4 changes: 2 additions & 2 deletions dockerhub/teamcity-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ See the **\<path-to-data-directory>** and **\<path-to-logs-directory>** descript
We also suggest allocating a sufficient amount of resources to the Docker process, like in this example:

```
docker run --memory="6g" --cpus=4 -e TEAMCITY_SERVER_MEM_OPTS="-Xmx3g -XX:MaxPermSize=270m -XX:ReservedCodeCacheSize=450m" --name teamcity-server-instance
docker run --memory="6g" --cpus=4 -e TEAMCITY_SERVER_MEM_OPTS="-Xmx3g -XX:MaxPermSize=270m -XX:ReservedCodeCacheSize=640m" --name teamcity-server-instance
-v <path-to-data-directory>:C:/ProgramData/JetBrains/TeamCity
-v <path-to-logs-directory>:C:/TeamCity/logs
-v <path-to-temp-directory>:C:/TeamCity/temp
Expand Down Expand Up @@ -99,7 +99,7 @@ When you need to pass additional environment variables to the server process, us

```
docker run --name teamcity-server-instance \
-e TEAMCITY_SERVER_MEM_OPTS="-Xmx2g -XX:MaxPermSize=270m -XX:ReservedCodeCacheSize=350m" \
-e TEAMCITY_SERVER_MEM_OPTS="-Xmx2g -XX:MaxPermSize=270m -XX:ReservedCodeCacheSize=640m" \
-v <path-to-data-directory>:/data/teamcity_server/datadir \
-v <path-to-log-directory>:/opt/teamcity/logs \
-p <port-on-host>:8111 \
Expand Down

0 comments on commit 5d79468

Please sign in to comment.