Memcached status analysis, memcached status

Source: Internet
Author: User

Memcached status analysis, memcached status

1. memcache status stats description:

Pid memcache server process ID uptime server has run seconds time server current unix timestamp version memcache version pointer_size pointer size of the current operating system (32-bit systems are generally 32bit) cumulative user time of the rusage_user process the cumulative system time of the rusage_system process the number of items currently stored on the curr_items server total_items Total number of items stored after the server is started bytes the number of bytes occupied by items stored on the server curr_connections total number of connections total_connections the number of connections that have been opened since the server was started connection_structures the number of connections allocated by the server pai_get get command (obtained) total number of requests pai_set set command (SAVE) total number of requests get_hits total number of hits get_misses total number of missed calls evictions the number of items deleted to get idle memory (the space allocated to memcache must be deleted after it is full to get space allocation by deleting the old items to the new items) bytes_read total number of bytes read (number of request bytes) bytes_written total number of sent bytes (number of results bytes) limit_maxbytes memory size (bytes) allocated to memcache threads current thread count Memcache hit rate: get_hits/cmd_get

2. How to View Details of memcache:1. stats reset

Clear statistics

2. stats mallocDisplay memory allocation data

3. stats cachedump slab_id limit_numDisplays the list of the first limit_num keys in an slab. The format is as follows:

ITEM key_name [value_length B; expire_time | access_time s] among them, memcached 1.2.2 and earlier versions display access time (timestamp) Versions later than 1.2.4, including 1.2.4 display expiration time (timestamp) if it is a key that never expires, expire_time is displayed as the start time of the server.
 stats cachedump 7 2 ITEM copy_test1 [250 b; 1207795754 s] ITEM copy_test [248 b; 1207793649 s]

4. stats slabsDisplays information about each slab, including the chunk size, quantity, and usage.

5. stats itemsDisplay the number of items in each slab and the age of the oldest item (the number of seconds from the last visit)

6. stats detail [on | off | dump]Set or display detailed operation records

The parameter is on, the detailed operation record parameter is off, and the detailed operation record parameter is dump to show the detailed operation records (the number of times each key value is get, set, hit, and del)

7. Clear all key valuesFlush_all

Note: flush does not delete items, but marks all items as expired. Therefore, memcache still occupies all memory.

8. ExitQuit

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.