Application error when access /_vti_bin/client.svc, Error=Memory gates checking failed because the free memory (207630336 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, Boolean throwOnLowMemory, UInt64& availableMemoryBytes) at System.ServiceModel.ServiceHostingEnvironment.HostingManager.CheckMemoryCloseIdleServices(EventTraceActivity eventTraceActivity) at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity)I closed my Visual Studio application and all was working. So It’s time to add some extra memory to my Hyper-V machine.
Frequently asked questions
What caused the REST request to return HTTP 500 in the example?
ULS reported that free memory was below the service’s memory gate threshold, preventing it from accepting requests.
What restored the service in the author’s test?
Closing Visual Studio freed memory and the request worked; the author then considered adding memory to the virtual machine.
