Oracle 5.0 Reference Manual page 1402

Table of Contents

Advertisement

For example, to get the basic stats using telnet:
shell> telnet localhost 11211
Trying ::1...
Connected to localhost.
Escape character is '^]'.
stats
STAT pid 23599
STAT uptime 675
STAT time 1211439587
STAT version 1.2.5
STAT pointer_size 32
STAT rusage_user 1.404992
STAT rusage_system 4.694685
STAT curr_items 32
STAT total_items 56361
STAT bytes 2642
STAT curr_connections 53
STAT total_connections 438
STAT connection_structures 55
STAT cmd_get 113482
STAT cmd_set 80519
STAT get_hits 78926
STAT get_misses 34556
STAT evictions 0
STAT bytes_read 6379783
STAT bytes_written 4860179
STAT limit_maxbytes 67108864
STAT threads 1
END
When using Perl and the
about all the servers currently configured in the connection object, and total statistics for all the
servers as a whole.
memcached
For example, the following Perl script obtains the stats and dumps the hash reference that is returned:
use Cache::Memcached;
use Data::Dumper;
my $memc = new Cache::Memcached;
$memc->set_servers(\@ARGV);
print Dumper($memc->stats());
When executed on the same
reference with the host by host and total statistics:
$VAR1 = {
'hosts' => {
'localhost:11211' => {
Getting
memcached
Cache::Memcached
as used in the
memcached
'misc' => {
'bytes' => '2421',
'curr_connections' => '3',
'connection_structures' => '56',
'pointer_size' => '32',
'time' => '1211440166',
'total_items' => '410956',
'cmd_set' => '588167',
'bytes_written' => '35715151',
'evictions' => '0',
'curr_items' => '31',
'pid' => '23599',
'limit_maxbytes' => '67108864',
'uptime' => '1254',
'rusage_user' => '9.857805',
'cmd_get' => '838451',
'rusage_system' => '34.096988',
'version' => '1.2.5',
'get_hits' => '581511',
'bytes_read' => '46665716',
1382
Statistics
module, the
stats()
example above we get a hash
Telnet
function returns information

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents