|
Packit |
4e8bc4 |
.TH MEMCACHED-TOOL 1 "Jul 2, 2013"
|
|
Packit |
4e8bc4 |
.SH NAME
|
|
Packit |
4e8bc4 |
memcached-tool \- stats and management tool for memcached
|
|
Packit |
4e8bc4 |
|
|
Packit |
4e8bc4 |
.SH SYNOPSIS
|
|
Packit |
4e8bc4 |
.B memcached-tool
|
|
Packit |
4e8bc4 |
.RI < host [: port "] | " /path/to/socket "> [" mode ]
|
|
Packit |
4e8bc4 |
|
|
Packit |
4e8bc4 |
.SH DESCRIPTION
|
|
Packit |
4e8bc4 |
.B memcached-tool
|
|
Packit |
4e8bc4 |
is a Perl script used to print statistics from a running memcached instance.
|
|
Packit |
4e8bc4 |
The first parameter specifies the address of the daemon either by a hostname,
|
|
Packit |
4e8bc4 |
optionally followed by the port number (the default is 11211), or a path to
|
|
Packit |
4e8bc4 |
UNIX domain socket. The second parameter specifies the mode in which the tool
|
|
Packit |
4e8bc4 |
should run.
|
|
Packit |
4e8bc4 |
|
|
Packit |
4e8bc4 |
.SH MODES
|
|
Packit |
4e8bc4 |
.TP
|
|
Packit |
4e8bc4 |
.B display
|
|
Packit |
4e8bc4 |
Print slab class statistics. This is the default mode if no mode is specified.
|
|
Packit |
4e8bc4 |
The printed columns are:
|
|
Packit |
4e8bc4 |
.RS
|
|
Packit |
4e8bc4 |
.TP
|
|
Packit |
4e8bc4 |
.B #
|
|
Packit |
4e8bc4 |
Number of the slab class.
|
|
Packit |
4e8bc4 |
.TP
|
|
Packit |
4e8bc4 |
.B Item_Size
|
|
Packit |
4e8bc4 |
The amount of space each chunk uses. One item uses one chunk of the
|
|
Packit |
4e8bc4 |
appropriate size.
|
|
Packit |
4e8bc4 |
.TP
|
|
Packit |
4e8bc4 |
.B Max_age
|
|
Packit |
4e8bc4 |
Age of the oldest item in the LRU.
|
|
Packit |
4e8bc4 |
.TP
|
|
Packit |
4e8bc4 |
.B Pages
|
|
Packit |
4e8bc4 |
Total number of pages allocated to the slab class.
|
|
Packit |
4e8bc4 |
.TP
|
|
Packit |
4e8bc4 |
.B Count
|
|
Packit |
4e8bc4 |
Number of items presently stored in this class. Expired items are not
|
|
Packit |
4e8bc4 |
automatically excluded.
|
|
Packit |
4e8bc4 |
.TP
|
|
Packit |
4e8bc4 |
.B Full?
|
|
Packit |
4e8bc4 |
Yes if there are no free chunks at the end of the last allocated page.
|
|
Packit |
4e8bc4 |
.TP
|
|
Packit |
4e8bc4 |
.B Evicted
|
|
Packit |
4e8bc4 |
Number of times an item had to be evicted from the LRU before it expired.
|
|
Packit |
4e8bc4 |
.TP
|
|
Packit |
4e8bc4 |
.B Evict_Time
|
|
Packit |
4e8bc4 |
Seconds since the last access for the most recent item evicted from this
|
|
Packit |
4e8bc4 |
class.
|
|
Packit |
4e8bc4 |
.TP
|
|
Packit |
4e8bc4 |
.B OOM
|
|
Packit |
4e8bc4 |
Number of times the underlying slab class was unable to store a new item.
|
|
Packit |
4e8bc4 |
.RE
|
|
Packit |
4e8bc4 |
|
|
Packit |
4e8bc4 |
.TP
|
|
Packit |
4e8bc4 |
.B stats
|
|
Packit |
4e8bc4 |
Print general-purpose statistics of the daemon. Each line contains the name of
|
|
Packit |
4e8bc4 |
the statistic and its value.
|
|
Packit |
4e8bc4 |
.TP
|
|
Packit |
4e8bc4 |
.B dump [limit]
|
|
Packit |
4e8bc4 |
Make a partial dump of the cache written in the add statements of the
|
|
Packit |
4e8bc4 |
memcached protocol. If
|
|
Packit |
4e8bc4 |
.B limit
|
|
Packit |
4e8bc4 |
is given and is a strictly positive
|
|
Packit |
4e8bc4 |
integer, then the dump is limited to that number of items.
|
|
Packit |
4e8bc4 |
|
|
Packit |
4e8bc4 |
.SH SEE ALSO
|
|
Packit |
4e8bc4 |
.BR memcached (1),
|
|
Packit |
4e8bc4 |
.br
|
|
Packit |
4e8bc4 |
.B https://www.memcached.org
|
|
Packit |
4e8bc4 |
|
|
Packit |
4e8bc4 |
.SH AUTHOR
|
|
Packit |
4e8bc4 |
The memcached-tool script was written by Brad Fitzpatrick
|
|
Packit |
4e8bc4 |
.B <brad@danga.com>
|