| You are viewing documentation of TeamCity 4.x, which is not the most recent released version of TeamCity. Please refer to the listing to choose another version. |
|
Various aspects of TeamCity behavior can be customized through a set of JVM options. The options can be specified using the -D parameter passed to the JVM running the TeamCity server or agent. Server Startup PropertiesDepending on how your TeamCity server is started (using shell scripts or as Microsoft Windows service), you need to customize JVM options (for example, JVM -D option). You can specify these options via environment variables or using Tomcat service configuration (see sections below for details). You will need to restart the server for the option to take effect. Examples of JVM option you might need are teamcity.data.path to specify TeamCity data directory or a debug parameter you received from TeamCity support. Server is Run Via Shell ScriptIf you run the server using the runAll or teamcity-server scripts, you can set the options via TEAMCITY_SERVER_OPTS environment variable.
TeamCity Server is Run as Windows ServiceTo edit JVM server options run Tomcat's service configuration editor by executing the command tomcat6w.exe //ES//TeamCity
Agent Startup PropertiesIn TeamCity a build agent contains two processes:
Whether you run a build agent via the agent.bat|sh script or as a Windows service, at first the agent launcher starts and then it starts the agent. Agent Launcher PropertiesBuild Agent Is Run Via ScriptBefore you run the <Agent Home>\bin\agent.bat|sh script, set the TEAMCITY_LAUNCHER_OPTS environment variable. Build Agent Is Run As ServiceIn the <Agent Home>\launcher\conf\wrapper.conf file, add the following lines (one per option, the N number should increase): wrapper.java.additional.<N>
Agent PropertiesBuild Agent Is Run Via ScriptBefore you run the <Agent Home>\bin\agent.bat|sh script, set the following environment variables:
Build Agent Is Run As ServiceIn the <Agent Home>\launcher\conf\wrapper.conf file, add the following lines (one per option): wrapper.app.parameter.<N>
|