Adjusting memory resources

Hey

Im trying to adjust the memorysettings for TeamCity running on a Debian server.

I added: TEAMCITY_SERVER_MEM_OPTS="-Xmx1024m -XX:MaxPermSize=270m" to /etc/environment and rebooted the server. A printenv outputs: TEAMCITY_SERVER_MEM_OPTS=-Xmx1024m -XX:MaxPermSize=270m

When starts teamcity with teamcity-server.dh start and go to Administration > Diagnostics i see:

JVM arguments:

-Djava.util.logging.config.file=/usr/local/sbin/TeamCity/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xmx512m -XX:MaxPermSize=270m -Dteamcity.configuration.path=../conf/teamcity-startup.properties -Dlog4j.configuration=file:/usr/local/sbin/TeamCity/bin/../conf/teamcity-server-log4j.xml -Dteamcity_logs=../logs/ -Djava.awt.headless=true -Djava.endorsed.dirs=/usr/local/sbin/TeamCity/endorsed -Dcatalina.base=/usr/local/sbin/TeamCity -Dcatalina.home=/usr/local/sbin/TeamCity -Djava.io.tmpdir=/usr/local/sbin/TeamCity/temp 

 

I looks like the arguments are not been used. Can anybody help?

 

/Jacob

3 comments

Hi Jacob,

Could you please double check that the environment variables are set for the same user that is used to start TeamCity server?

0

It looks like /etc/environment is global. So i should be there.

http://askubuntu.com/questions/150789/difference-between-bash-bashrc-and-etc-environment-file

 

TeamCIty is running as root.

0

Could you please try to add echo command to print TEAMCITY_SERVER_MEM_OPTS variable into the teamcity-server.sh file? Is the correct value printed?

0

Please sign in to leave a comment.