Cache entry size limit?
Garrett, Philip (MAN-Corporate)
Philip.Garrett at cox.com
Tue Nov 16 08:19:50 PST 2004
On Mon, 15 Nov 2004 21:31:27 -0500
"Michael Alan Dorman" <mdorman at debian.org> wrote:
>
> "Garrett, Philip (MAN-Corporate)" <Philip.Garrett at cox.com> writes:
> > Is there a size limit to individual cache entries in memcached? My
> > memcached server is choking on sizes slightly smaller than 1 megabyte.
>
> I think the output you reproduced shows your limit at, um, 12MB?
>
> > STAT limit_maxbytes 134217728
Actually, it's 128 MB.
> You might try increasing the memory allocated to memcached; it uses a
> slab allocator, and while this is resistant to fragmentation in the
> presence of many relatively small objects, with large objects it can
> result in unfortunate amounts of wasted memory.
I still have the same trouble, even when giving memcached 256 MB. By the
way,
there are *no* other entries in the cache at this point.
STAT limit_maxbytes 268435456
<4 set key1 0 0 1048535
>4 SERVER_ERROR out of memory
<4 set key1 0 0 1048534
>4 STORED
Is there a ~1MB limit on cache entries?
Thanks,
Philip
More information about the memcached
mailing list