Memcache monitoring Tool--stats

Source: Internet
Author: User

Memcache monitoring Tool--stats

Introduced

Memcache's stats command is the most basic tool for viewing memcache status.

Under the default instance, connect to Memcache by using a command such as Telnet 127.0.0.1 11211, and then enter stats to see the current status of Memcache.

The descriptions of these states are as follows:

Pid

Process ID of the Memcache server

Uptime

Number of seconds the server has been running

Time

Server's current UNIX timestamp

Version

Memcache version

Pointer_size

The current operating system pointer size (32-bit system is generally 32bit)

Rusage_user

Cumulative user time for the process

Rusage_system

Cumulative system time for processes

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

The number of bytes occupied by the current server store items

Curr_connections

Number of connections currently open

Total_connections

Number of connections that have been opened since the server was started

Connection_structures

Number of connection constructs allocated by the server

Cmd_get

Get command (GET) total number of requests

Cmd_set

Set command (Save) Total Request count

Get_hits

Total Hit Count

Get_misses

Total number of Misses

Evictions

Items deleted in order to get free memory (the space allocated to memcache needs to be deleted after the old items are allocated to the new items)

Bytes_read

Total bytes read (number of requests bytes)

Bytes_written

Total Bytes sent (bytes of result)

Limit_maxbytes

Size of memory allocated to Memcache (bytes)

Threads

Current number of threads

Related commands


Stats

Display server information, statistics, etc.

Stats Reset

Clear statistics

Stats malloc

Display memory allocation data

Stats Cachedump slab_id Limit_num

Displays a list of the first 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 the access Time (timestamp)

1.2.4 above, including 1.2.4 Display expiration Time (timestamp)

If the key,expire_time is never expired, it will be displayed as the server startup time


Stats Cachedump 7 2

ITEM Copy_test1 [+ b; 1207795754 S]

ITEM Copy_test [248 b; 1207793649 S]

Stats Slabs

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

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)

Stats detail [On|off|dump]

Set or display detailed operation Records

parameter is on to open detailed operation record

parameter is off, close verbose operation record

The parameter is dump, showing the detailed operation record (number of times each key value get, set, hit, Del)


Stats Detail Dump

PREFIX Copy_test2 get 1 hit 1 set 0 del 0

PREFIX Copy_test1 get 1 hit 1 set 0 del 0

PREFIX cpy get 1 hit 0 set 0 del 0

This article is from the SQL Server deep dives blog, so be sure to keep this source http://ultrasql.blog.51cto.com/9591438/1637635

Memcache monitoring Tool--stats

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.