Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to adjust AppFabric Cache server to store larger objects?

I'm getting an error with the AppFabric Cache Server when I presume a larger object graph gets added to the cache.

ErrorCode :SubStatus:The connection was terminated, possibly due to server or network problems or serialized Object size is greater than MaxBufferSize on server. Result of the request is unknown.

I know for sure its not a network problem. I was able to add a bunch of objects to cache before this particular one. And looking into it, the object is a bit bigger than the others that got added to cache.

How can I adjust the MaxBufferSize on AppFabric Cache?

like image 389
irperez Avatar asked Aug 10 '10 13:08

irperez


People also ask

What does the AppFabric caching service do?

AppFabric Caching stores serialized managed objects in a cache cluster. The cache cluster consists of one or more machines that pool their available physical memory. This pooled memory is presented to cache clients as a single source of caching memory. Objects are stored and accessed using an associated key value.

What is Distributed cache service in SharePoint?

The Distributed Cache service uses half of that memory allocation for data storage (also known as cache size), and the other half of that memory allocation is used for memory management overhead. When the cached data grows, the Distributed Cache service uses the entire 10 percent of the allocated memory.

How do I start an AppFabric caching service?

The Start-CacheCluster commandlet starts the caching service on all the servers that are part of the cluster with the lead hosts starting before non-lead hosts. 3. Once the Caching Service is up and running, we can query it for the caches that are available in this cluster by using the Get-Cache command.


1 Answers

You need to increase the buffer size on the server side as well:

If you use XML config add the following:

<advancedProperties>      
    <transportProperties maxBufferSize="8388608" />
</advancedProperties> 

If you use SQL configuration,you need to export it to a file:

Export-CacheClusterConfig -File [yourfilepath] 

Change the file as listed above and than import it again:

Stop-CacheCluster 
Import-CacheClusterConfig -File [yourfilepath]
Start-CacheCluster

Nevertheless it's not recommended to store large files in the AppFabric Cache.

like image 56
Manuel Avatar answered Oct 20 '22 00:10

Manuel