Large object support

Eric Hodel drbrain at segment7.net
Tue Mar 6 22:07:35 UTC 2007


On Mar 6, 2007, at 09:55, Wes Gamble wrote:

> Hello,
>
> I have a Ruby on Rails application running on the following platform:
>
> Mandriva Linux release 2006.0 (Official) for i586
> Kernel 2.6.12-27mdksmp on a 4-processor i686 / \l
>
> I'm using the Rubygem "memcache-client" to access and store data in  
> my installation of memcache.
>
> I don't seem to be able to store objects of approximate size 1MB or  
> greater in the memcache.  These same puts work fine on my Windows box.
>
> Are there any known limitations to how large an object can be  
> stored in memcache?  Does anyone have any examples of storing  
> something 1MB or so or bigger?
> Should I be looking at the Ruby binding as the source of my problem?

$ cat test.rb
require 'rubygems'
require 'memcache'

text = '0' * 1024 * 1024

mc = MemCache.new 'localhost:11211'

result = mc.set 'text', text

puts result

$ ruby test.rb
SERVER_ERROR object too large for cache

I should probably raise an exception, but I don't.

Running memcached -vv shows the same.


More information about the memcached mailing list