2012-06-11 32 views
0

我能夠成功地向AppFabric放入/添加70MB數據。但是當我嘗試檢索相同的_cache.Get(key)方法時,我遇到了以下錯誤。AppFabric Error @ objCache.Get(key)

  1. 請讓我知道什麼是錯的。
  2. 讓我知道,如果它的好這個龐大的數據

錯誤

「錯誤代碼:子狀態:連接被終止, 可能是由於服務器或網絡問題或序列化對象的大小 大於服務器上的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

您應該考慮放置70MB對象的備用解決方案。 AppFabric適用於非常頻繁訪問的易失性數據,理想情況下低於256kB(查看它們的benchmark results,可用here)。

注意:基準測試結果鏈接似乎目前已被打破。