TeamCity how to set JVM arguments

my teamcity build server has the following JVM arguments:

-Xmx512m -XX: MaxPermSize = 270 m

sometimes a message with a memory problem is displayed, for example, "Memory usage by the TeamCity server for the PS Old Gen pool exceeded 91% of the maximum available 341 MB. Used 437 MB of the total available heap of 506 MB. For possible solutions, see the TeamCity documentation".

I read here https://confluence.jetbrains.com/display/TCD8/Install+and+Configuring+the+TeamCity+Server#InstallandConfiguringtheTeamCityServer-SettingUpMemorysettingsforTeamCityServer , whose minimum recommended settings are:.

how / where can i change this parameter?

+6
source share
3 answers

In TC9 +, this variable can be set in the TC Server GUI: Administration โ†’ Diagnostics โ†’ Internal Properties โ†’ Change Internal Properties

For 64-bit JVM recommended setting:

TEAMCITY_SERVER_MEM_OPTS=-Xmx4g -XX:MaxPermSize=270m -XX:ReservedCodeCacheSize=350m

Just add this line to the edit box of internal properties

+4
source

I would recommend adding JVM memory parameters to the startup script (start.sh) for server-based startup using a variable TEAMCITY_SERVER_MEM_OPTS. Do not specify it in the userid profile that runs teamcity.

This link should be useful for you.

( , ), , , JVM .

, teamcity teamcity 20% , avg-, .

+2

, . , . , . JVM, , . , TeamCity. , (TEAMCITY_SERVER_MEM_OPTS). , -e TEAMCITY_SERVER_MEM_OPTS = '...' .

+1

Source: https://habr.com/ru/post/1584487/


All Articles