curr_items never decreases

john allspaw jallspaw at
Thu May 18 16:52:15 UTC 2006

and what would be useful in these stats, related to this thread, is the age of the oldest object in the cache,
which I've asked about before.   anyone come up with a way to add this to the stats ?


----- Original Message ----
From: Brian Moon <brianm at>
To: Stephen Woodbridge <woodbri at>
Cc: memcached at
Sent: Thursday, May 18, 2006 7:50:30 AM
Subject: Re: curr_items never decreases

> What is the best way to get hit/miss stats? Are these stored in the 
> server and retrievable through the stats interface? We use the Perl API.

Yes, they are available in the stats interface.  I use the PHP/PECL API, 
so I am not sure how the Perl API returns that.  Here is a telnet 
session that shows the data:

$ telnet 11211
Connected to
Escape character is '^]'.
STAT pid 7949
STAT uptime 4521905
STAT time 1147963848
STAT version 1.1.12
STAT rusage_user 1505.176178
STAT rusage_system 3408.329855
STAT curr_items 92413
STAT total_items 14054351
STAT bytes 41228832
STAT curr_connections 281
STAT total_connections 5101393
STAT connection_structures 692
STAT cmd_get 85868835
STAT cmd_set 14054351
STAT get_hits 84870042
STAT get_misses 998793
STAT bytes_read 8141304030
STAT bytes_written 769333592842
STAT limit_maxbytes 67108864


Brian Moon
Its good to be cheap =)

More information about the memcached mailing list