Memcached increasing the item size

28 views
Skip to first unread message

Ratnesh Kumar Gupta

unread,
Feb 11, 2014, 9:43:30 AM2/11/14
to memc...@googlegroups.com
hi ,

i am working with Memcached 1.4.14 on ubuntu server. i am in need to increase the size of the item for storing the data in memcache. 

i am using the command for updating the size as 

$ memcached -I 2m 

but its just shows me the Warning and it does not showing anything in progress. Is this correct method .. ?

Please help me in this as i am in urgent need of this.

Thanks in advance 
Ratnesh

Ryan McElroy

unread,
Feb 11, 2014, 3:57:54 PM2/11/14
to memc...@googlegroups.com
According to the man page, this is the correct method to increase the item size limit.

By "the Warning" I presume you mean this: http://pastebin.com/jtdjda2D
First of all, it's there for a reason: generally, if you think you need items larger than 1MB, you're probably framing the problem suboptimally for memcached. If possible, consider reframing the problem you're tackling so you can store more smaller items instead of one or a few larger items.

Finally,, what do you mean by "not showing anything in progress"? What progress do you expect? memcached doesn't generally print anything out in normal operation. On an ubuntu box I have, when I run 'memcached -I 2m' then from another terminal run 'echo -ne "set foo 0 0 2000000\r\n$(printf "%0.s----------" {1..200000})\r\n" | nc localhost 11211' I get the expected output: STORED. So it works!

~Ryan
--
 
---
You received this message because you are subscribed to the Google Groups "memcached" group.
To unsubscribe from this group and stop receiving emails from it, send an email to memcached+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Ratnesh Kumar Gupta

unread,
Feb 11, 2014, 11:52:04 PM2/11/14
to memc...@googlegroups.com
Hi Ryan ,

I would like to thanks for your reply.


"Finally,, what do you mean by "not showing anything in progress"? What progress do you expect? memcached doesn't generally print anything out in normal operation. On an ubuntu box I have, when I run 'memcached -I 2m' then from another terminal run 'echo -ne "set foo 0 0 2000000\r\n$(printf "%0.s----------" {1..200000})\r\n" | nc localhost 11211' I get the expected output: STORED. So it works!"

"By "the Warning" I presume you mean this: http://pastebin.com/jtdjda2D" yes same warning i use to get..  actually i am new to this so having bit of confusions.

After the $ memcached -I 2m so it will set the item size limit as 2mb and later we can perform the storing of data. is that all or i have to do some other changes also.



--
 
---
You received this message because you are subscribed to a topic in the Google Groups "memcached" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/memcached/eSBo2irFERk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to memcached+...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.



--
--
*Thanks  & Regards *
*Ratnesh Kumar Gupta*
*(+91 - 9403983944)*


Ryan McElroy

unread,
Feb 12, 2014, 10:20:47 AM2/12/14
to memc...@googlegroups.com
That's all you have to do on the memcached side. I don't know how well clients support larger items though; you'll want to verify that the client you are using will support larger items as well.

~Ryan
Reply all
Reply to author
Forward
0 new messages