|
If you experience problems running TeamCity and believe it's related to the software, please contact us with detailed description of the issue. To fix a problem, we may need a wide range of information about your system as well as various logs. The section below explains how to collect such information. In this section: Logging EventsTeamCity (both server and build agents) logs events and warnings using log4j. The logging rules and log4j configuration files for TeamCity are described in Logs of Internal Events. Before reproducing the problem it makes sense to enable 'DEBUG' log level for TeamCity classes. To do it, edit the logs/teamcity-(server|agent) Make sure the logs are rotated by default. When debug is enabled it makes sense to increase maxBackupIndex value in the relevant appender tag to 10 or even 20 files (ensure there is sufficient free disk space available). You can change the log4J configuration files while the server/agent is running. If it is possible (some log4j restrictions apply), the loggers will be reconfigured without process restart. Hangs and Thread DumpsIf you experience problems with the TeamCity server (e.g. no responding or working too slow) we would appreciate a thread dump of the server process.
In GUI mode, you can use AdaptJ StackTrace Utility under Windows, Linux or Mac OS X to get the stacktrace of the process even if it runs without console. Choose "Launch" on the page (if you have Java installed). When the application is started, select the process id via "Process > Select", then dump its thread dump with "Process > Thread Dump". Another option to get thread dump under Windows is to use TeamCity-bundled thread dump tool. Run the command: See also Server Performance section below. OutOfMemory ProblemsIf you experience problems with TeamCity "eating" too much memory (OutOfMemory errors), please do the following:
Version Control Debug LoggingThere are a set of debug options that turn on debug logging for specific version controls. Run the server with the required option and send us teamcity-vcs.log file for analysis. Some version controls also have specific logs that appear after uncommenting corresponding sections form the log4j configuration file. Some options need to be specified as JVM parameters. For description of more JVM parameters and how to add them , see TeamCity Startup Properties section. Subversion Integration Debug LoggingAdjust the logging configuration and restart the server or agent, correspondingly. The log will be saved to the logs\teamcity-svn.log file. Minot changes may not need the restart. ServerTo turn on debug logging of the SVNkit library on the server side, uncomment all the lines marked with <!--UNCOMMENT FOR DEBUG--> in the <TeamCity home>\conf\teamcity-server-log4j.xml file. AgentTo turn on debug logging of the SVNkit library on the agent (only relevant for agent-side checkout mode) uncomment the following lines in the <category name="javasvn.output"> <priority value="DEBUG"/> <appender-ref ref="SVN.LOG"/> </category> CVSAdd -Dcvs.log.commands=true JVM parameter to the server and also to the agent (for agent-side checkout only). The logging will go into logs/teamcity-vcs.log. ClearCaseUncomment Clearcase-related lines in the <TeamCity home>\conf\teamcity-server-log4j.xml file. Patch Application ProblemsIn case server-side checkout is used, the "patch" that is passed from server to the agent can be retrieved by:
Agent log will contain the line "Patch is saved to file ${file.name}" Remote Run ProblemsThe changes that are sent form the IDE to the server on a remote run can be retrieved from server's .BuildServer\system\changes directory. Locate the <change_number>.changes file that corresponds to your change (you can pick the latest number available or deduce the from the URL of the change form the web UI). Server PerformanceIf you experience degraded server performance and TeamCity server process is producing large CPU load, please take the CPU profiling snapshot and send it to us accompanied with the detailed description of what you were doing and what is your system setup. Logging in TeamCity Visual Studio pluginTo capture logs from TeamCity Visual Studio plugin please do the following:
Sending Large Files to the DevelopersFiles under 5Mb in size can be attached right into the tracker issue. If you do not want the content of the files be publicly available or the file is over 5 Mb, you can upload the archived files to ftp://ftp.intellij.net/.uploads and let us know the exact file name. |