Memcache supports the data size of 1 m, the latest version can be adjusted through the configuration to break through 1 m (see http://www.cnblogs.com/shanyou/archive/2010/02/01/1661271.html), appfabric caching also supports large data cache. When you see such an error, you need to adjust the parameter.
Microsoft. applicationserver. caching. datacacheexception: errorcode <errca0016>: substatus <es0001>: 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.
To solve the problem, you must add the maxbuffersize configuration on both the server and client.
Export cluster config
Export-cacheclusterconfig-file c: \ temp \ appfabriccluster. config
Export cluster configurations to an XML config file. The name is appfabriccluster. config.
Add the transportproperties configuration. Follow the application configuration settings suggestions to add the following configuration in appfabriccluster. config in the previous step. Import and apply configurations
You must stop the cluster before importing the configuration. After the configuration is imported, start the cluster.
Stop-CacheCluster
Import-CacheClusterConfig -File c:\temp\appFabriccluster.configStart-CacheCluster
Add transportproperties configuration in client config
1: <?xml version="1.0" encoding="utf-8" ?>
2: <configuration>
3: <!--configSections must be the FIRST element -->
4: <configSections>
5: <!-- required to read the <dataCacheClient> element -->
6: <section name="dataCacheClient"
7: type="Microsoft.ApplicationServer.Caching.DataCacheClientSection,
8: Microsoft.ApplicationServer.Caching.Core, Version=1.0.0.0,
9: Culture=neutral, PublicKeyToken=31bf3856ad364e35"
10: allowLocation="true"
11: allowDefinition="Everywhere"/>
12: </configSections>
13:
14: <dataCacheClient requestTimeout="15000" channelOpenTimeout="3000" maxConnectionsToServer="1">
15: <localCache isEnabled="true" sync="TimeoutBased" ttlValue="300" objectCount="10000"/>
16: <clientNotification pollInterval="300" maxQueueLength="10000"/>
17:
18:
19:
20:
21: <securityProperties mode="Transport" protectionLevel="EncryptAndSign" />
22: <transportProperties connectionBufferSize="131072" maxBufferPoolSize="268435456"
23: maxBufferSize="8388608" maxOutputDelay="2" channelInitializationTimeout="60000"
24: receiveTimeout="600000"/>
25: </dataCacheClient>
26: </configuration>