linux - Can anybody let me know the command to obtain the current maximum size to store the object in the Memcached -
can let me know command obtain current maximum size store object in memcached. in documentation have not come across getting actual size of memcached capacity.
it's available in output of stat settings
command. didn't if wanted maximum size of single item or total available memory both available.
maximum item size
(at least in not old releases, checked 1.4.13). using telnet:
telnet <hostname> <port> > stat settings (...) item_size_max 1048576 (...)
maximum capacity in bytes
available both in stat
, stat settings
:
telnet <hostname> <port> > stat settings (...) maxbytes 10737418240 (...) > stat (...) limit_maxbytes 10737418240 (...)
remaining capacity
as far know, it's not directly available, have compute stat
command output:
> stat (...) bytes 5349380740 (...) limit_maxbytes 10737418240 (...)
here have limit_maxbytes - bytes
= 5388037500 bytes remaining.
documentation
this confirmed documentation shipped sources, in doc/protocol.txt
:
| maxbytes | size_t | maximum number of bytes allows in cache | | item_size_max | size_t | maximum item size |
side note
note memory consumption , memory limit memcached point of view. limit 1 has been given in command line -m
option. won't tell if physical memory not sufficient handle data.
Comments
Post a Comment