Windows Server appfabric caching supports configuration of large data volumes

Source: Internet
Author: User

Memcache supports the data size of 1 m, the latest version can be adjusted through the configuration to break through 1 m (see, 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.

  • First, the server
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.
Import-CacheClusterConfig -File c:\temp\appFabriccluster.configStart-CacheCluster
  • Again, the client

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=, 

   9:             Culture=neutral, PublicKeyToken=31bf3856ad364e35"

  10:           allowLocation="true"

  11:           allowDefinition="Everywhere"/>

  12: </configSections>


  14:    <dataCacheClient requestTimeout="15000" channelOpenTimeout="3000" maxConnectionsToServer="1">

  15:       <localCache isEnabled="true" sync="TimeoutBased" ttlValue="300" objectCount="10000"/>

  16:       <clientNotification pollInterval="300" maxQueueLength="10000"/>





  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>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.