Today I tried to access a list through the REST API.

The url that I used is:
http://intranet.mycomp.co.uk/pa/legal/test_3/_api/Web/Lists/GetByTitle(‘Documents’)

When opening the above URL in my browser I got a HTTP 500 error.

The ULS logs showed the following error:

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.

Avatar for Pieter Veenstra

By Pieter Veenstra

Business Applications and Office Apps & Services Microsoft MVP working as a Microsoft Productivity Principal Consultant at HybrIT Services. You can contact me using contact@veenstra.me.uk.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: