在服务器资源紧张内存少于5%WCF会出现如下错误信息:

Memory gates checking failed because the free memory (39424000 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.

 

解决办法:打开web.config,找到configuration/system.serviceModel/serviceHostingEnvironment节点,加入minFreeMemoryPercentageToActivateService=”0″,即可0-5,即为0%-5%

<serviceHostingEnvironment multipleSiteBindingsEnabled="true" aspNetCompatibilityEnabled="true" minFreeMemoryPercentageToActivateService="0" />

 

原创文章,转载请注明本文链接地址(违者必究):在服务器资源紧张内存少于5%WCF会出现Memory gates checking failed错误解决办法

打赏作者
很喜欢这篇文章,打赏犒劳下作者,以此激励作者创作更多

您的支持将鼓励我们继续创作!

[微信] 扫描二维码打赏

[支付宝] 扫描二维码打赏

发表评论

电子邮件地址不会被公开。 必填项已用*标注