• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 796
  • Last Modified:

how to change the minFreeMemoryPercentageToActivateService attribute

I keep getting this error and my remote gateway shuts down. I know i need to change the minFreeMemoryPercentageToActivateService attribute to 0 but i cant figure out where.

InsufficientMemoryException
   Memory gates checking failed because the free memory (757772288 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. at System.ServiceModel.Activation.ServiceMemoryGates.Check(Int32 minFreeMemoryPercentage) at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)  
   https://remote.wykous.com:443/Remote/BuiltIns/HomePage/GadgetDnD/GadgetDnDService.svc/js
   /Remote/BuiltIns/HomePage/GadgetDnD/GadgetDnDService.svc/js
0
shawkins331
Asked:
shawkins331
1 Solution
 
David Johnson, CD, MVPOwnerCommented:
in your web.config, in your configuration\system.serviceModel\serviceHostingEnvironment element, add a minFreeMemoryPercentageToActivateService attribute, and set it to a velue less than 5 i.e. 0
<configuration>
  <system.serviceModel>
    <serviceHostingEnvironment ... minFreeMemoryPercentageToActivateService="0" />
  </system.serviceModel>
</configuration>

Caution via MSDN: "Specifying this attribute along with partial trust in the web.config file of a WCF service will result in a Security Exception when the service is run."

http://stackoverflow.com/questions/2880383/strange-error-occurring-when-using-wcf-to-run-query-against-sql-server/11531518#11531518
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now