memcached State Analysis

Source: Internet
Author: User

1.memcache Status Stats Description:

PID Memcache server's process ID uptime the number of seconds the server has been running Time Server current UNIX timestamp version memcache pointer_size current operating system pointer size (32-bit system is generally 32bit) Cumulative user Time of the rusage_user process rusage_system the cumulative system time of the process curr_items the number of items currently stored by the server Total_items the total number of items stored since the server was started bytes Current server storage number of bytes occupied curr_connections number of connections that are currently open total_connections the number of connections that have been opened since the server started connection_structures the number of connection constructs allocated by the server Cmd_get get Command (GET) total number of requests Cmd_set set command (Save) total number of requests Get_hits Total hits get_misses total number of misses evictions The number of items deleted for free memory (the space allocated to memcache needs to be removed after the old items to get the space allocated to the new items) bytes_read Total bytes read (request bytes) Bytes_written Total Bytes sent (result bytes) Limit_maxbytes allocated to Memcache memory size (bytes) threads number of current threads memcache hit rate: Get_hits/cmd_get

2.memcache Detail View method: 1.stats Reset

Clear statistics

2.stats malloc display memory allocation data

3.stats cachedump slab_id limit_num displays a list of the top limit_num keys in a slab, shown in the following format

ITEM Key_name [Value_length b; expire_time|access_time s] where memcached 1.2.2 and previous versions show  access time (timestamp) 1.2.4 or later, Include 1.2.4 Display expiration Time (timestamp) if it is never expired key,expire_time will be displayed as the time the server started
Stats Cachedump 7 2 Item Copy_test1 [+ B; 1207795754 s] ITEM copy_test [248 b; 1207793649 S]

4.stats Slabs Displays information about each slab, including the size, number, usage, etc. of chunk

5.stats Items Displays the number of item in each slab and the age of the oldest item (the number of seconds the last access distance is now)

6.stats Detail [on|off|dump] set or show detailed operation record

parameter is on, open verbose operation record parameter is off, close detailed operation record parameter is dump, show detailed operation record (number of times of each key value get, set, hit, Del)

7. Clear all key values Flush_all

Note: Flush does not delete items, except that all items are marked as expired, so Memcache still occupies all of the memory.

8. Quit quit

memcached State Analysis

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.