Getting
memcached
Statistics
1381
Command
Command Formats
delete
delete key
,
delete key noreply
,
delete key expiry
,
delete
key expiry noreply
incr
incr key
,
incr key noreply
,
incr key value
,
incr key value
noreply
decr
decr key
,
decr key noreply
,
decr key value
,
decr key value
noreply
stat
stat
,
stat name
,
stat name value
When sending a command to the server, the response from the server is one of the settings in the
following table. All response values from the server are terminated by
\r\n
:
Table 15.3.
memcached
Protocol Responses
String
Description
STORED
Value has successfully been stored.
NOT_STORED
The value was not stored, but not because of an error. For commands
where you are adding a or updating a value if it exists (such as
add
and
replace
), or where the item has already been set to be deleted.
EXISTS
When using a
cas
command, the item you are trying to store already exists
and has been modified since you last checked it.
NOT_FOUND
The item you are trying to store, update or delete does not exist or has
already been deleted.
ERROR
You submitted a nonexistent command name.
CLIENT_ERROR
errorstring
There was an error in the input line, the detail is contained in
errorstring
.
SERVER_ERROR
errorstring
There was an error in the server that prevents it from returning the
information. In extreme conditions, the server may disconnect the client after
this error occurs.
VALUE keys flags
length
The requested key has been found, and the stored
key
,
flags
and data
block are returned, of the specified
length
.
DELETED
The requested key was deleted from the server.
STAT name value
A line of statistics data.
END
The end of the statistics data.
15.6.4. Getting
memcached
Statistics
The
memcached
system has a built-in statistics system that collects information about the data being
stored into the cache, cache hit ratios, and detailed information on the memory usage and distribution
of information through the slab allocation used to store individual items. Statistics are provided at
both a basic level that provide the core statistics, and more specific statistics for specific areas of the
memcached
server.
This information can be useful to ensure that you are getting the correct level of cache and memory
usage, and that your slab allocation and configuration properties are set at an optimal level.
The stats interface is available through the standard
memcached
protocol, so the reports can be
accessed by using
telnet
to connect to the
memcached
. The supplied
memcached-tool
includes
support for obtaining the
Section 15.6.4.2, “
memcached
Slabs Statistics”
and
Section 15.6.4.1,
“
memcached
General Statistics”
information. For more information, see
Section 15.6.4.6, “Using
memcached-tool
”
.
Alternatively, most of the language API interfaces provide a function for obtaining the statistics from the
server.
Summary of Contents for 5.0
Page 1: ...MySQL 5 0 Reference Manual ...
Page 18: ...xviii ...
Page 60: ...40 ...
Page 396: ...376 ...
Page 578: ...558 ...
Page 636: ...616 ...
Page 844: ...824 ...
Page 1234: ...1214 ...
Page 1427: ...MySQL Proxy Scripting 1407 ...
Page 1734: ...1714 ...
Page 1752: ...1732 ...
Page 1783: ...Configuring Connector ODBC 1763 ...
Page 1793: ...Connector ODBC Examples 1773 ...
Page 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Page 2850: ...2830 ...
Page 2854: ...2834 ...
Page 2928: ...2908 ...
Page 3000: ...2980 ...
Page 3122: ...3102 ...
Page 3126: ...3106 ...
Page 3174: ...3154 ...
Page 3232: ...3212 ...