How to set / change the jvm memory settings?
I have read through the documentation and searched the web, but I just cannot figure out how to change / pass / whatever the memory settings TeamCity should use.
I am running TeamCity on Windows 10, using 64-bit Java. According to the documentation I should use "-Xmx4g -XX:ReservedCodeCacheSize=350m", in some combination with TEAMCITY_SERVER_MEM_OPS.
But, where and how do I enter / write that? I would highly appreciate someone giving me step-by-step instructions as though I am a six year old.
Please sign in to leave a comment.
I've been just running it with this environment variable set:
Hi Joakim,
to set the variables, follow the steps here https://superuser.com/questions/949560/how-do-i-set-system-environment-variables-in-windows-10 or check the windows help. Once you do that, consider adding the values that adjust better to your use case. Having more memory, while in principle sounds great, also increases substantially the time that the Garbage collection process takes, which might lead to spikes in performance/slowness. Only add it if you really need it.