Managing Memory Allocation for Distributed Cache in SharePoint 2013


By default, the Distributed Cache service’s memory allocation is set to 10% of the total physical memory when SharePoint 2013 is installed.  For a single server installation with SQL and SharePoint running on the same server, I was not able to do much with this default configuration.

Microsoft provides a TechNet article on how to change this setting using PowerShell (

I followed step 1 under the “Change the memory allocation of the Distrbuted Cache by using Windows PowerShell” with no issues.

$instanceName =”SPDistributedCacheService Name=AppFabricCachingService”
$serviceInstance = Get-SPServiceInstance | ? {($_.service.tostring()) -eq $instanceName -and ($ -eq $env:computername}

When I used what is listed in step 2,

Set-CacheHostConfig -Hostname Hostname -cacheport Cacheport -cachesize Cachesize

I received an error.  I don’t remember the exact error message, but it was similar to “No valid cluster settings were provided with Use-CacheCluser”. (I closed the PS window before capturing the screenshot).

By simply typing “Use-CacheCluster” first, followed by

Set-CacheHostConfig -Hostname Hostname -cacheport Cacheport -cachesize Cachesize


it allowed me to continue and finish the memory allocation for Distributed Cache.

With this and NodeRunner.exe changes, I’m able to run SharePoint 2013 with SQL on the same server with 6GB RAM.


Math is off between SharePoint and Windows server.

I stopped the Distributed Cache service from Central Admin.  That stopped the DistributedCacheService.exe from running on my server.

I updated my Distributed Cache Settings to 200 MB


I restarted the Distributed Cache service from Central Admin; hoping to see a change in my server’s memory consumption.

Instead, I saw this.


Nothing here matches to 200 MB or 204800 KB.

What gives?




Dog Food Conference 2012

Leave a comment

Dog Food Conference 2012 will be on November 8-9, 2012 at Microsoft Polaris Office in Columbus, OH.

What is dogfooding?

This is a local conference by community IT professionals showcasing Microsoft technologies. The conference started in 2008 by Danilo Casino, Jeff Blankenburg, Brian Prince, Brian Cassidy and other MS employees.

This year, we are expecting 390-440 attendees with 40-45 sessions of the two-day period.

Additional information will be posted in the next few days.