How to optimize memory usage in single-server farm setup?

We are a very small company of seven people how have a single SharePoint 2013 server running. It has 16 GB memory and is also running a SQL server.

Performance is just fine, there does not seem to be a need for more resources, especially considering the very few users the server has. However, every morning we have to reset IIS... SharePoint refuses to handle web service requests. In particular, the following message shows up in the event log:

-----------------------------

WebHost failed to process a request. Sender Information: System.ServiceModel.Activation.HostedHttpRequestAsyncResult/26431814 Exception: System.ServiceModel.ServiceActivationException: The service '/_vti_bin/client.svc' cannot be activated due to an exception during compilation. The exception message is: Memory gates checking failed because the free memory (603746304 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.. ---> System.InsufficientMemoryException: Memory gates checking failed because the free memory (603746304 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.

--------------------------------------------------------

Besides figuring out what service I needed to set the minFreeMemoryPercentageToActivateService element on, I would like to know how I could otherwise optimize the SharePoint installation. It seems it should be more than enough with 16 GB of memory for our purpose.

Any advice on optimizations we can do?


August 27th, 2013 5:15am

Hi,

According to your post, my understanding is that you wanted to know how to optimize memory usage in single-server farm with SharePoint 2013.

Some features\services might be not needed, you can disable them. Such as 'Search Service' and 'Distributed Cache Service' which consume lots of memory.

You can refer to the following article, which about Optimizing Server Configuration: http://www.spdeveloper.co.in/sharepoint2013/optimizing-the-configuration-of-development-farm.aspx

You also can refer to the following similar post Minimum real world system requirements for SharePoint 2013

If you have any problems, please feel free to reply me.

Thanks,

Jason Guo

Free Windows Admin Tool Kit Click here and download it now
August 27th, 2013 10:50pm

The problem is SQL Server, which by default will try to store as much SQL data inside of RAM as possible. So i'd start with limiting the amount of RAM SQL Server can use

http://technet.microsoft.com/en-us/library/ms178067.aspx

Do you see your SQL Server RAM slowly growing throughout the day? maybe run a perfmon log for 24 hours and see whats going on. Keep in mind that timer jobs running at night might fill more RAM than end user browsing...

August 28th, 2013 12:13am

Good idea, this solved the issue for now. 
Free Windows Admin Tool Kit Click here and download it now
August 28th, 2013 5:08am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics