[bug]WCF 內存入口檢查失敗 Memory gates checking failed


bug描述

異常信息:內存入口檢查失敗,因為可用內存(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文件中設置的百分比。

解決方案

關閉其他不用的程序,釋放內存。或者更改配置文件中

system.serviceModel–>

serviceHostingEnvironment–>

minFreeMemoryPercentageToActivateService=1屬性值為小一些,或者為0。

總結

在客戶哪兒部署項目時出現這個錯誤,大概意思就是內存不足造成的。通過修改配置文件解決問題。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2026 CODEPRJ.COM