Hi Dustin, thanks for the quick response. Please see my comments
below.

>You've really gone out of your way to run it as root.  Why is it so
>important to you to do that?  I think it's a rather awful idea.

Can you please suggest the best way to run memcached, if running it as
root a bad idea.
Correcting my command (sudo memcached -d -m 10240 -u root -I 5120 -u
root -l [host] -p 11311) would help me better understand.

>Is the total size of your key and value larger than 5,120 bytes?

I meant to run it with 5MB, so I have corrected it by changing it from
5120 to 5242880.
It gave me a warning:
#WARNING: Setting item max size above 1MB is not recommended!
#Raising this limit increases the minimum memory requirements, and
will decrease your memory efficiency.

Yes, some of my objects are way too large close to 5 MB!

Even after running memcached with 5MB, I still get the error message -
Caused by: java.lang.IllegalArgumentException: Cannot cache data
larger than 1048576 bytes (1MB) (you tried to cache a 1828343 (1.74
MB) byte object)

Thanks
Abhilash

Reply via email to