Bug Description
Sender Information: system.servicemodel.servicehostingenvironment+hostingmanager/31242459 exception: System.ServiceModel.ServiceActivationException: The service "XX.XAMLX" could not be activated due to an exception during compilation. The exception message is: The memory ingress check failed because the available memory (310542336 bytes) is less than 5% of the total memory. Therefore, 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: ---> system.insufficientmemoryexception: Memory ingress check failed because available memory (310542336 bytes) is less than 5% of total memory. Therefore, 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.
Solution Solutions
Close other unused programs and free up memory. or change the configuration file
System.servicemodel–>
Servicehostingenvironment–>
The value of the Minfreememorypercentagetoactivateservice=1 property is smaller, or 0.
<system.serviceModel> <behaviors> <serviceBehaviors> <behavior name=""> <servicemetadata httpgetenabled="true"/> <servicedebug includeexceptiondetailinfaults="true"/> </behavior> </serviceBehaviors> </behaviors> <serviceho1tingenvironment Multi Plesitebindingsenabled="true"<span style="color: #ff0000;">minfreememorypercentagetoactivateservice=0</span>/> <bindings> <basicHttpBinding>
or restart the service:
Document:
https://yq.aliyun.com/articles/10188
Https://msdn.microsoft.com/magazine/hh394143.aspx
Wcf&appfabric: Exception message: Memory ingress check failed