SharePoint 2013 – Rest API – Application error when access /_vti_bin/client.svc Error=Memory gates checking failed because the free memory is less than 5% of total memory.

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.

Advertisements

Please leave a comment or feedback

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

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