TFS 2013生成计算机与消息队列失去连接

TFS 2013生成计算机与消息队列失去连接,tfs,msbuild,Tfs,Msbuild,TFS生成控制器在启动时输出以下错误消息: Build machine [BuildServerName] lost connectivity to message queue tfsmq://buildservicehost-5/. Reason: Please contact your administrator. There was an error contacting the server. Technical information (for administrator): HT

TFS生成控制器在启动时输出以下错误消息:

Build machine [BuildServerName] lost connectivity to message queue tfsmq://buildservicehost-5/.
Reason: Please contact your administrator. There was an error contacting the server.
Technical information (for administrator):
  HTTP code 500: System.ServiceModel.ServiceActivationException
我已尝试重新创建生成控制器并重新注册生成服务

有人知道我如何对tfsmq进行故障排除,或者对我收到的错误有一个现有的解决方案吗?任何帮助都将不胜感激


谢谢。

经过进一步调查,我在TFS服务器上找到了问题的真正原因:

WebHost failed to process a request.
 Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/62476613
 Exception: System.ServiceModel.ServiceActivationException: The service '/service.svc' cannot be activated due to an exception during compilation.  The exception message is: Memory gates checking failed because the free memory (1045856256 bytes) is less than 5% of total memory.  As a result, the service will not be available for incoming requests.  To resolve this, either reduce the load on the machine or adjust the value of minFreeMemoryPercentageToActivateService on the serviceHostingEnvironment config element.. ---> System.InsufficientMemoryException: Memory gates checking failed because the free memory (1045856256 bytes) is less than 5% of total memory.  As a result, the service will not be available for incoming requests.  To resolve this, either reduce the load on the machine or adjust the value of minFreeMemoryPercentageToActivateService on the serviceHostingEnvironment config element.
   at System.ServiceModel.Activation.ServiceMemoryGates.Check(Int32 minFreeMemoryPercentage, Boolean throwOnLowMemory, UInt64& availableMemoryBytes)
   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.CheckMemoryCloseIdleServices(EventTraceActivity eventTraceActivity)
   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity)
   --- End of inner exception stack trace ---
   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity)
   at System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath, EventTraceActivity eventTraceActivity)
 Process Name: w3wp
 Process ID: 6404
如上所述,问题是服务器内存不足(可用内存不足5%)。目前,SQL server与TFS位于同一台服务器上。由于数据库的巨大,SQL server已经耗尽了盒子上所有的可用内存

通过减少SQL server的最大分配内存以允许TFS,该问题已得到修复

如果有人对此感兴趣,可通过以下方式完成:

  • 正在打开SQLServerManagementStudio
  • 右键单击服务器实例;选择属性
  • 选择“内存”页面
  • 在“最大服务器内存”属性中输入合理的值

  • 经过进一步调查,我在TFS服务器本身上找到了问题的真正原因:

    WebHost failed to process a request.
     Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/62476613
     Exception: System.ServiceModel.ServiceActivationException: The service '/service.svc' cannot be activated due to an exception during compilation.  The exception message is: Memory gates checking failed because the free memory (1045856256 bytes) is less than 5% of total memory.  As a result, the service will not be available for incoming requests.  To resolve this, either reduce the load on the machine or adjust the value of minFreeMemoryPercentageToActivateService on the serviceHostingEnvironment config element.. ---> System.InsufficientMemoryException: Memory gates checking failed because the free memory (1045856256 bytes) is less than 5% of total memory.  As a result, the service will not be available for incoming requests.  To resolve this, either reduce the load on the machine or adjust the value of minFreeMemoryPercentageToActivateService on the serviceHostingEnvironment config element.
       at System.ServiceModel.Activation.ServiceMemoryGates.Check(Int32 minFreeMemoryPercentage, Boolean throwOnLowMemory, UInt64& availableMemoryBytes)
       at System.ServiceModel.ServiceHostingEnvironment.HostingManager.CheckMemoryCloseIdleServices(EventTraceActivity eventTraceActivity)
       at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity)
       --- End of inner exception stack trace ---
       at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity)
       at System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath, EventTraceActivity eventTraceActivity)
     Process Name: w3wp
     Process ID: 6404
    
    如上所述,问题是服务器内存不足(可用内存不足5%)。目前,SQL server与TFS位于同一台服务器上。由于数据库的巨大,SQL server已经耗尽了盒子上所有的可用内存

    通过减少SQL server的最大分配内存以允许TFS,该问题已得到修复

    如果有人对此感兴趣,可通过以下方式完成:

  • 正在打开SQLServerManagementStudio
  • 右键单击服务器实例;选择属性
  • 选择“内存”页面
  • 在“最大服务器内存”属性中输入合理的值

  • 对我们来说,TFS管理服务器上的IIS应用程序池(“微软Team Foundation Server消息队列应用程序池”)被停止了。

    < P>,TFS管理服务器上的IIS应用程序池(“微软Team Foundation Server消息队列应用程序池”)被停止。

    您在哪里找到异常消息的?事件查看器?您在哪里找到该异常消息?事件查看器?我还遇到了应用程序池停止的问题,感谢Tom Fort最近遇到的相同问题-回收IIS应用程序池修复了问题我也遇到了应用程序池停止的问题,感谢Tom Fort最近遇到的相同问题-回收IIS应用程序池修复了问题