Dalli :: DalliError:响应错误130:内存不足

时间:2014-07-30 12:30:37

标签: ruby-on-rails memcached dalli

Dalli::DalliError: Response error 130: Out of memory
from /bundled_gems/ruby/1.9.1/gems/dalli-2.7.0/lib/dalli/server.rb:496:in cas_response' from /bundled_gems/ruby/1.9.1/gems/dalli-2.7.0/lib/dalli/server.rb:275:inblock in set'
from /bundled_gems/ruby/1.9.1/gems/dalli-2.7.0/lib/dalli/server.rb:459:in guard_max_value' from /bundled_gems/ruby/1.9.1/gems/dalli-2.7.0/lib/dalli/server.rb:272:inset'
from /bundled_gems/ruby/1.9.1/gems/dalli-2.7.0/lib/dalli/server.rb:60:in request' from /bundled_gems/ruby/1.9.1/gems/dalli-2.7.0/lib/dalli/options.rb:18:inblock in request'
from /usr/lib64/ruby/1.9.1/monitor.rb:211:in mon_synchronize' from /bundled_gems/ruby/1.9.1/gems/dalli-2.7.0/lib/dalli/options.rb:17:inrequest'
from /bundled_gems/ruby/1.9.1/gems/dalli-2.7.0/lib/dalli/client.rb:323:in perform' from /bundled_gems/ruby/1.9.1/gems/dalli-2.7.0/lib/dalli/client.rb:103:inset'
from (irb):13
from /usr/bin/irb:12:in `'

有人可以解释这个错误吗?我发现memcache中有很多空的空间,但我仍然会因为几个键而出现这个错误。

1 个答案:

答案 0 :(得分:0)

当memcached服务器挂起时,我看到了这个错误。在有人提出更具决定性的答案之前,重新启动memcached并查看其配置。也许“-m”参数试图使用比服务器可用的内存更多的内存。

some indication here它可能是由早期的memcached错误导致的,所以请确保您是最新的。