gpt4 book ai didi

asp.net - 具有完整内存错误的WCF服务(由于可用内存,内存门检查失败)-如何解决

转载 作者:行者123 更新时间:2023-12-02 09:38:56 26 4
gpt4 key购买 nike

我有一个WCF服务主机。我对wc的要求很高。我的主机经过一段时间显示出内存已满的问题。重复此问题。当我打开Web服务帮助页面时,显示此错误:

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



我从WCF主机上的web.config如下:
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="">
<serviceMetadata httpGetEnable="true"/>
<serviceDebug includeExceptionDetailInFaults="false"/>
<serviceHostingEnvironment minFreeMemoryPercentageToActivateService="1"/>
</behavior>
</serviceBehaviors>

主机web.config是
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IPaperService" clouseTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisojnMode="StringWildcard" maxBufferSize="1000000000" maxBufferPoolSize="1000000000" maxReceivedMessageSize="100000000" messageEncoding="text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="1000000000" maxArrayLength="1000000000" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None" realm=""/>
<message clientCredentialType="UserName" algorthmSuite="Default" />
<security>
</binding>

我该如何解决我的问题?

最佳答案

尝试按照this answer的建议在WCF主机的yourweb.config中将minFreeMemoryPercentageToActivateService设置为0。

关于asp.net - 具有完整内存错误的WCF服务(由于可用内存,内存门检查失败)-如何解决,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16119546/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com