curr_items never decreases

Brian Moon brianm at
Thu May 18 14:50:30 UTC 2006

> 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