私はWCFサービスホストを持っています。 wcからの私の要求は高いです。私のホストは、一定の期間が過ぎるとメモリ不足の問題が発生した後に表示されます。この問題は繰り返されます。私は、Webサービスのヘルプページを開くと、このエラーが表示されます。空きメモリ(1398493184 バイト)総メモリの5%未満であるためフルメモリエラーのWCFサービス(空きメモリが原因でメモリゲートチェックに失敗しました) - 解決方法
メモリゲートは、失敗したチェック。その結果、サービスは着信要求には利用できなくなります。 これを解決するには、マシンの負荷を に減らすか、 serviceHostingEnvironment config要素の minFreeMemoryPercentageToActivateServiceの値を調整します。
次のように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>
どのように私は私の問題を解決することができますか?
スクリーンショットとして挿入するのではなく、コードをコピーして貼り付けてください。 – Lemurr
メモ: 'serviceHostingEnvironment'要素は、 '動作'ではなく 'system.serviceModel'の子である必要がありますスレッド@Andreaが提供) – Radderz