Memory gates checking failed because the free memory (9338880 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.
Stack Trace Exception:
[InsufficientMemoryException: Memory gates checking failed because the free memory (9338880 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.]
FIX:
In your web.config look under configuration / system.serviceModel / serviceHostingEnvironment element. Add a minFreeMemoryPercentageToActivateService attribute and set it to zero (0).
<configuration>
<system.serviceModel>
<serviceHostingEnvironment minFreeMemoryPercentageToActivateService="0" />
</system.serviceModel>
</configuration>
This comment has been removed by the author.
ReplyDeleteI wouldn't trust IIS to not gobble up the rest of the memory you give it access to and compromise the whole machine. Usually restarting IIS claws back the excessive memory it grabs and gives enough relief to continue running.
ReplyDelete