Perfect, thank you<br><br><div><span class="gmail_quote">On 12/9/05, <b class="gmail_sendername">Peter van Dijk</b> <<a href="mailto:peter@nextgear.nl">peter@nextgear.nl</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Wed, Dec 07, 2005 at 10:49:08PM -0800, Jeff Rodenburg wrote:<br>> I'm new to memcached and need a little guidance. I've got a relative<br>> understanding of how memcached works and would like to monitor the service.
<br>> Is it possible to measure the available capacity of a running memcached<br>> instance? For example, considering a memcached daemon allocated 2GB of RAM,<br>> how much available space exists on that instance?
<br>><br>> My goal is to understand how much cache is being used in order to plan how<br>> many more daemons/systems we need to allocate. I'm not even sure if this is<br>> an appropriate approach, but I wasn't able to find an answer in the mailing
<br>> list archives.<br><br># telnet localhost 11211<br>Trying 127.0.0.1...<br>Connected to localhost<br>Escape character is '^]'.<br>stats<br>STAT pid 7160<br>STAT uptime 12259115<br>STAT time 1134120329<br>STAT version
1.1.11<br>STAT rusage_user 152:349128<br>STAT rusage_system 284:196501<br>STAT curr_items 26837<br>STAT total_items 342093<br>STAT bytes 1594665<br>STAT curr_connections 1<br>STAT total_connections 814007<br>STAT connection_structures 7
<br>STAT cmd_get 846178<br>STAT cmd_set 342078<br>STAT get_hits 764174<br>STAT get_misses 82004<br>STAT bytes_read 94808973<br>STAT bytes_written 182472401<br>STAT limit_maxbytes 134217728<br>END<br><br>Specifically, `bytes' is the amount of memory in use within memcache,
<br>out of a maximum of limit_maxbytes (which would be ~2GB in your case).<br>However, keep in mind that `bytes' may count data that is ready to<br>be expired but hasn't been removed yet.<br><br>Most client libraries have functionality to extract these statistics.
<br><br>Regards,<br>Peter.<br></blockquote></div><br>