是否有可能调整的AppFabric缓存服务器来存储大型的对象? [英] Is it possible to adjust AppFabric Cache server to store larger objects?

查看:111
本文介绍了是否有可能调整的AppFabric缓存服务器来存储大型的对象?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到一个错误的AppFabric的缓存服务器,当我presume较大的对象图被添加到缓存中。

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

错误code:子状态:连接被终止,可能是由于服务器或网络问题或序列化对象大小大于MaxBufferSize服务器。该请求的结果是未知的。

我知道肯定它不是一个网络问题。我能这个特殊的前添加一堆对象缓存。而寻找到它,对象是比得到了添加到高速缓存中的其他人有点大了。

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.

我怎样才能调整MaxBufferSize上的AppFabric缓存?

推荐答案

客户端是在<一个href="http://msdn.microsoft.com/en-us/library/microsoft.applicationserver.caching.datacachetransportproperties.maxbuffersize.aspx">maxBufferSize在您的DataCacheClient配置部分运输元素。

Client Side it is the maxBufferSize on the transport element in your DataCacheClient config section.

   <transportProperties  ..whatever else you have..  maxBufferSize="8388608"  />

编辑:

在DataCacheClient部分从 MSDN

Example of the DataCacheClient section from MSDN

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<!--configSections must be the FIRST element -->
<configSections>
<!-- required to read the <dataCacheClient> element -->
<section name="dataCacheClient"
     type="Microsoft.ApplicationServer.Caching.DataCacheClientSection,
        Microsoft.ApplicationServer.Caching.Core, Version=1.0.0.0, 
        Culture=neutral, PublicKeyToken=31bf3856ad364e35"
      allowLocation="true"
      allowDefinition="Everywhere"/>
</configSections>

<dataCacheClient requestTimeout="15000" channelOpenTimeout="3000" maxConnectionsToServer="1">
  <localCache isEnabled="true" sync="TimeoutBased" ttlValue="300" objectCount="10000"/>
  <clientNotification pollInterval="300" maxQueueLength="10000"/>
  <hosts>
     <host name="CacheServer1" cachePort="22233"/>
     <host name="CacheServer2" cachePort="22233"/>
  </hosts>
  <securityProperties mode="Transport" protectionLevel="EncryptAndSign" />
  <transportProperties connectionBufferSize="131072" maxBufferPoolSize="268435456" 
                       maxBufferSize="8388608" maxOutputDelay="2" channelInitializationTimeout="60000" 
                       receiveTimeout="600000"/>
  </dataCacheClient>
 </configuration>

这篇关于是否有可能调整的AppFabric缓存服务器来存储大型的对象?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆