WCF 內存入口檢查失敗 Memory gates checking failed
異常信息:內存入口檢查失敗,因為可用內存(xxx 字節)少於總內存的 xx%。因此,該服務不可用於傳入的請求。若要解決此問題,請減少計算機上的負載,或調整 serviceHostingEnvironment 配置元素上的 minFreeMemoryPercentageToActivateService 的值。
說明: 執行當前 Web 請求期間,出現未經處理的異常。請檢查堆棧跟蹤信息,以了解有關該錯誤以及代碼中導致錯誤的出處的詳細信息。
異常詳細信息: System.InsufficientMemoryException: 內存入口檢查失敗,因為可用內存(438648832 字節)少於總內存的 50%。因此,該服務不可用於傳入的請求。若要解決此問題,請減少計算機上的負載,或調整 serviceHostingEnvironment 配置元素上的 minFreeMemoryPercentageToActivateService 的值。
英文報錯:Memory gates checking failed because the free memory ({0} bytes) is less than {1}% 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服務激活之前,系統應該具有的最小內存量不足config文件中設置的百分比。
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" minFreeMemoryPercentageToActivateService="0" />
http://www.cnblogs.com/lyq4/p/3728188.html
