SharePoint Distributed Cache Size 2013

Cache Size best practices report by SPDocKit determines whether the Distributed Cache size is configured properly on all servers.

Issue description

This check determines whether the Distributed Cache service is enabled in the SharePoint farm.


Distributed Cache is a customized version of the Windows App Fabric deployed in SharePoint 2013. The Distributed Cache service is either required for or improves the performance of the following:

  • Authentication

  • Newsfeeds

  • OneNote client access

  • Security Trimming

  • Page load performance

Microsoft recommends that the cache size for the Distributed Cache service is set at 10% for servers in collocated mode or is set using the following formula for dedicated servers: (total physical memory on server – 2 GB for other processes and services that are running on the cache host)/2. Deviation of 10% is acceptable. Maximum memory allocation is 16 GB. You must ensure that the memory allocation assigned to the Distributed Cache service is the same on all servers running the Distributed Cache service.


Verify the memory allocation size for Distributed Cache on all servers which are running the service. To do so, start SharePoint 2013 Management Shell as Administrator. Run the following Windows PowerShell cmdlets:

Get-AFCacheHostConfiguration -ComputerName $env:COMPUTERNAME -CachePort "22233"

To change the memory allocation, run the following cmdlet:

Update-SPDistributedCacheSize -CacheSizeInMB <i>CacheSize</i>

Additional information

Additional information can be found in the following article:

Last updated