I am attempting to use Teamcity templates so that users in my organization can easily create new builds that share most processes, based off a template.
For some reason, builds generated using the template run *extremely* slowly. I've looked at the server and agent logs, and they appear to indicate that every once in awhile, after a BlockClosed statement is issued to close a block in the log, nothing happens for a few minutes. For example:
[2013-12-10 13:13:19,510] out - ##teamcity[blockOpened name=':work-i18n-impl:jar']
[2013-12-10 13:13:19,576] out - ##teamcity[blockClosed name=':work-i18n-impl:jar']
[2013-12-10 13:14:08,380] out - ##teamcity[compilationStarted compiler=':work-motivate:compileJava']
[2013-12-10 13:14:08,492] out - ##teamcity[compilationFinished compiler=':work-motivate:compileJava']
This is also apparent in the build output:
[13:13:19][Step 1/6] :work-i18n-impl:jar
[13:14:08][Step 1/6] :work-motivate:compileJava
It appears that for some reason, nothing happens for nearly a minute in between closing a block and opening the next one. The end result is that this build, which other than being created from a template is identical to our other builds, takes hours to run instead of minutes.
The build is running gradle. I have attached two thread dumps from the agent. We are running Teamcity 8.0.3. Any help would be appreciated.