"To undertake the previous article"
Exam system-The problem solution when the underlying framework is released (Window7 IIS6.0) (ii)
4, problem description
The memory ingress check failed because there is no xx% (xx bytes) Less than the total memory, so the service is not available for incoming requests. To resolve this issue, reduce the load on the computer, or adjust the value of Minfreememorypercentagetoactivateservice on the servicehostingenvironment configuration element.
WORKAROUND: The service is an application running on a computer, and the service performs resource-intensive operations, so it is necessary to ensure that it has sufficient resources available when it starts running. A common and scarce resource is memory. For this reason, the WCF runtime allows you to specify the minimum value of available memory before the service is activated. You can customize this value by using the Minfreememorypercentagetoactivateservice attribute under the <serviceHostingEnvironment> element in the service configuration file. The default value is 5, and if the total memory available is less than 5% of total memory, then the WCF runtime fails and throws an ServiceActivationException exception (such as).
The solution is to change its value to a smaller point.
<servicehostingenvironment minfreememorypercentagetoactivateservice= "1"/>
Exam system-The problem solution when the underlying framework is released (Window7 IIS6.0) (iii)