How to view the current running status of Memcache from the command line

Source: Internet
Author: User
Tags command line php file version

The command line to view the running status of the Memcache is primarily a stats command, as follows:

(1) First through the Telnet command to connect to the Memcache, command: Telnet 127.0.0.1 11211

(2) Direct input stats can get the current memcache state.

For the memcache state the meaning of the English language is explained as follows:

Pid Memcache The process ID of the 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 typically 32bit)
Rusage_user Cumulative user time for the process
Rusage_system Cumulative system time of the process
Curr_items The number of items currently stored by the server
Total_items Total number of items stored since server startup
bytes The number of bytes consumed by the current server storage items
Curr_connections The 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 that the server assigns
Cmd_get Get command (gets) the total number of requests
Cmd_set Set command (save) number of total requests
Get_hits Total Hit Count
Get_misses Total missed Hits
Evictions Number of items deleted to get free memory (the space allocated to memcache needs to be removed from the old items to get space allocated to new items)
Bytes_read Total Read bytes (number of bytes requested)
Bytes_written Total Bytes sent (result bytes)
Limit_maxbytes Size of memory allocated to Memcache (bytes)
Threads Current number of threads

Articles that you may be interested in

    • JS Address bar effects (display the size of all the linked pictures on the page and view the height of the current browser)
    • How to view the MySQL startup time and how long it has been running
    • How to implement a PHP file running at the command line under Windows
    • How to view the current self-increment of a database table
    • Windows DOS command view the program that occupies XX port
    • No matter how much money you make, there will always be different worries.
    • Use PHP function memory_get_usage to get current PHP memory consumption to achieve program performance optimization
    • The principles and tutorials of PHP connection, manipulating memcached


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.