Memcached Query stats and various state explanations

Source: Internet
Author: User

One, two most commonly used status queries (mastering the first one is completely OK)

1) View status: printf "stats\r\n" |nc 127.0.0.1 11211
2) Analog top command View status: Watch "echo stats" |nc 127.0.0.1 11211

Second, a variety of stats Chinese interpretation. But the most common concern in the work is only four.

STAT get_hits 1 (serial number, not result, as below)

STAT get_misses 2

STAT Curr_items 3

STAT Total_items 4

Various stats Chinese explanations are as follows:

1. Process ID of the pid:memcached service process

2. Uptime:memcached the time, in seconds, from the start of the service to the current.

3. The time, in seconds, that the time:memcached server hosts the current system.

4. Version of the version:memcached component.

5. Pointer_size: The pointer size of the host operating system on which the server is located, typically 32 or 64.

6. Curr_items: Represents the number of cached objects that are stored in the current cache. Objects that are currently removed from the cache are not included.

7. Total_items: Represents the number of objects that have been stored by the system since the Memcached service was started to the current time, including objects that are currently removed from the cache.

8. Bytes: Represents the storage space used by the system to store cached objects in bytes.

9. Curr_connections: Indicates the number of connections that are open on the current system.

Total_connections: Represents the total number of connections that have been opened by the system from the Memcached service start to the current time.

Connection_structures: Indicates the number of connection structures that have been allocated by the server since the start of the Memcached service to the current time, this explanation is given by the Protocol document, and I do not understand it at this point.

Cmd_get: Number of cumulative fetch data

Cmd_set: Number of cumulative saved data

Get_hits: Indicates the number of times the data was successfully obtained.

Get_misses: Indicates the number of times the data failed to get.

Evictions: The number of cached objects removed from the cache in order to free up space for new data items. For example, objects that are removed based on the LRU algorithm when the cache size is exceeded, as well as expired objects.

Bytes_read:memcached The total number of bytes that the server reads from the network.

The total number of bytes sent to the network by the bytes_written:memcached server.

The maximum number of bytes allowed to be used by the limit_maxbytes:memcached service cache. This is 67108864 bytes, which is 64M. Match the size of the memcached service setting that we started.

Threads: The total number of worker threads that are requested. This explanation is given in the Protocol document.

Memcached Query stats and various state explanations

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.