no stats with perl Cache::Memcached

Jasper Cramwinckel jasper at bookings.nl
Tue Mar 8 03:50:17 PST 2005


Hi,

I have a problem with getting stats from the memcached. I try the
following command line statement:

[jasper at peony85 jasper]$ perl -e 'use Data::Dumper; use Cache::Memcached;
my $memd = new Cache::Memcached { servers =>
["192.168.1.60:11211","192.168.1.61:11211" ] };
print Dumper $memd->set("key", "value");
print Dumper $memd->get("key");
print Dumper $memd->stats("maps")'
$VAR1 = '1';
$VAR1 = 'value';
$VAR1 = {
          'total' => {
                       'get_misses' => '0',
                       'total_connections' => '0',
                       'get_hits' => '0',
                       'curr_items' => '0',
                       'connection_structures' => '0',
                       'total_items' => '0',
                       'bytes' => '0',
                       'bytes_read' => '0',
                       'cmd_get' => '0',
                       'cmd_set' => '0',
                       'bytes_written' => '0'
                     },
          'hosts' => {
                       '192.168.1.60:11211' => {
                                                 'misc' => {},
                                                 'maps' => 'SERVER_ERROR
cannot open the maps file'
                                               },
                       '192.168.1.61:11211' => {
                                                 'misc' => {},
                                                 'maps' => 'SERVER_ERROR
cannot open the maps file'
                                               }
                     }
        };

Storing and retrieving works fine, but  I do not get any result in my
stats.

Any idea how to solve this?

Thanks, Jasper



More information about the memcached mailing list