在向缓存添加更多数据时获取错误 [英] Getting Error while adding more data to cache

查看:53
本文介绍了在向缓存添加更多数据时获取错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我在数据表中添加了80,000条记录,之后只有两列,当我放入数据表时


缓存中的对象然后它给我错误。


连接终止,可能是由于服务器或网络问题或序列化对象大小大于服务器上的MaxBufferSize。请求的结果是未知的。


如果我尝试将记录添加到70,000然后它正在工作。那么,如果我们想要将更多数据放入缓存中,如何解决此类错误。如何增加缓存  大小或动态节点大小。


 

解决方案

看起来你超过了缓存服务器可以接受的最大邮件大小。默认情况下,缓存服务器只能接受消息uupto 仅限8MB。


您需要修改群集配置以便它可以接受更大的消息,您需要将以下元素添加到< advancedProperties>元素,并适当选择"大小"。


<! - 大小以字节为单位 - >


< transportProperties maxBufferSize =" ;大小" />


修改群集配置的说明如下:


http://msdn.microsoft.com/en-us/library/ff921028.aspx


http://msdn.microsoft.com/en-us/library/ee808060.aspx


并且您还需要修改客户端配置,以便客户端还可以在执行"获取"时从缓存服务器接受更大的消息。您可以通过客户端配置或客户端API修改它。要修改配置,
在客户端的dataCacheClient标记中添加上面给出的'transportProperties'元素。


以编程方式,DataCacheFactoryConfiguration上将有TransportProperties属性,允许您修改maxBufferSize属性。


 


 


 


Hi,

I am adding 80,000 records to datatable and it is having just two columns after that when I put that datatable

object inside cache then it is giving me error.

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.

IF I try to add record upto 70,000 then it is working.So, How to solve such Error if we want to put more data into cache. How to increase cache   size or that node size dynamically.

 

解决方案

Looks like you are exceeding the maximum message size that cache server can accept. By default cache server can only accept message uupto 8MB only.

You need to modify the cluster configuration so that it can accept bigger messages, you need to add following element to <advancedProperties> element, and choose 'size' appropriately.

<!-- size is in bytes -->

<transportProperties maxBufferSize="size" />

Instruction to modify the cluster configuration are given below:

http://msdn.microsoft.com/en-us/library/ff921028.aspx

http://msdn.microsoft.com/en-us/library/ee808060.aspx

And you will also need to modify the the client configuration, so that clients can also accept bigger messages from the cache servers while doing a "get". You can modify that either through client configuration or client side api. To modify the configuration, add the 'transportProperties' element given above in the dataCacheClient tag on the client side.

Programatically, there will be TransportProperties property on DataCacheFactoryConfiguration which allows you to modify maxBufferSize property.

 

 

 


这篇关于在向缓存添加更多数据时获取错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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