我能够成功地向AppFabric添加/添加70MB的数据。但是当我尝试检索相同的直通_cache.Get(key)
方法时,我收到了以下错误。
错误
“ErrorCode:SubStatus:连接已终止, 可能是由于服务器或网络问题或序列化对象大小 大于服务器上的MaxBufferSize。请求的结果是 未知“。
堆栈跟踪
at Microsoft.ApplicationServer.Caching.DataCache.ThrowException(ResponseBody respBody)
at Microsoft.ApplicationServer.Caching.DataCache.InternalGet(String key, DataCacheItemVersion& version, String region)
at Microsoft.ApplicationServer.Caching.DataCache.Get(String key)
客户端的Web配置
<dataCacheClient requestTimeout="150000" channelOpenTimeout="20000" maxConnectionsToServer="1">
<localCache isEnabled="false" sync="TimeoutBased" ttlValue="300" objectCount="10000"/>
<clientNotification pollInterval="300" maxQueueLength="10000"/>
<hosts><host name="MachineName" cachePort="22233"/></hosts>
<securityProperties mode="None" protectionLevel="None" />
<transportProperties connectionBufferSize="131072" maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxOutputDelay="2" channelInitializationTimeout="60000" receiveTimeout="2147483647"/>
</dataCacheClient>
服务器配置
<transportProperties maxBufferPoolSize="2147483647" maxBufferSize="2147483647" />
答案 0 :(得分:0)
您应该考虑使用替代解决方案来放置70MB的对象。 AppFabric适用于频繁访问的易失性数据,理想情况下低于256kB(查看benchmark results可用的here)。
注意:目前基准测试结果链接似乎已被打破。