TFS 2015更新1-构建代理的性能降低。

TFS 2015更新1-构建代理的性能降低。

问题描述:

我们已经使用TFS 2013构建代理并构建控制器很长一段时间,然后我们升级到TFS 2015 update1。我们需要20分钟才能按顺序构建解决方案。我们启用了Rolling构建并开始并行构建。建立
时间不会受到太大影响。经过2周的并行构建,突然构建需要20分钟,现在需要70-80分钟。

We have been using TFS 2013 build agents and build controllers for a long time then we upgraded to TFS 2015 update1. We had nighly builds taking 20 minutes to build a solution in sequence. We enabled Rolling builds and started to build in parallel. Build time was not affected too much. After 2 weeks of parallel builds, suddenly build which took 20 minutes, is now taking 70-80 minutes. 

提供一些事实 - 构建服务器是虚拟机。更改的磁盘,虚拟磁盘控制器,双倍内存(无更改),CPU利用率不受影响,磁盘碎片整理,网络检查,构建时间没有改善。构建代理和构建控制器
位于同一台计算机上,而Controller服务由域中的服务使用运行。虚拟构建服务器上的事件日志显示组策略错误 -  ""组策略处理失败。 组合策略设置将不会强制执行,直到
此事件得到解决。查看活动详细信息以获取有关此错误的更多信息。"。
AD团队表示这不是问题。

To provide some facts- build server is a virtual machine. Changed disks, virtual disk controller, doubled memory (no change), CPU utilization is not affected, disk defragmented, network checks, no improvement in build time. Build Agent and Build Controller were on the same machine and Controller service run by service use in domain. Event log on virtual build server shows Group Policy errors- "The processing of Group Policy failed. Group Policy settings will not be enforced until this event is resolved. View the event details for more information on this error.". AD team says this is not any issue.

似乎Build代理和Build控制器阻止了构建过程。所以我将Build Controller分离到一台单独的机器上。使用TFS重新注册服务。突然建立时间回到基线20分钟!它似乎工作!它花了2美元b $ b完全没问题,但是建造时间又回到了70分钟! 

It seemed like Build agent and Build controller were blocking the build process. So i separated Build Controller to a separate machine. Re-registered the services with TFS. And suddenly build times were back to baseline 20 mins! It seems to work! It worked for 2 days perfectly fine but build time was back to 70 mins! 

这个问题有解决办法吗?有没有其他人有这样的问题? TFS 2015 update1构建代理和构建控制器是否存在问题?或者使用网络用户或域
服务用户运行Build代理和控制器服务是否存在问题?构建日志不提供任何信息。只需构建步骤所花费的时间。

Is there a solution to this problem? Has any one else had these kind of issues? Is there an issue with TFS 2015 update1 build agents and build controllers? Or is there an issue with running Build agent and controller services with network user or Domain service user? Build log doesnt give any information. Just the time taken by build steps.

我们还有其他构建代理,它们位于虚拟机上并在TFS 2013 update 4上运行,并且没有此类问题。构建不是并行的,只有一个代理和控制器在同一个虚拟机上运行。

We have other build agents too which are on virtual machines and running on TFS 2013 update 4 and has no such issues. Builds are not parallel and only one agent and controller running on same virtual machine.




您好Akshat,

Hi Akshat,

感谢您的发帖。根据您的描述,您的问题与TFS Build更相关。我们将把您的主题移到TFS Build论坛以获得更好的支持。

Thank you for your post. Based on your description, your question is more related to TFS Build. We will move your thread to TFS Build forum for better support.

最好的问候,

Li Wang

Best Regards,
Li Wang