The simplest and most direct method is to add
-VVParameters to print the request and corresponding information of each client on the console, which is very suitable for development. Another direct method is to use Telnet. For example, if the server is a port 11211 of the local machine, you can use
Telnet local host 11211
And then use
StatsTo view the server status.
In addition, a better choice is to use some specialized monitoring tools. Some e
First, Monitoring Collection basis:Similar throughput, number of cached queries, hit rate, etc.Second, The main monitoring indicator analysis, through the stats command to collect:Uptime # #memcached运行时长Curr_connections # #当前的连接数Total_connections # #曾经打开的连接总数Connection_structures # #服务器分配的连接数Cmd_get # #执行get命令总数Cmd_set # #执行set命令总数Get_hits # #get命中次数Get_misses #
I haven't written any technical articles about my cainiao growth for a long time. I will post an article today. The WEB server uses memcached, but I don't know why memcached is always suspended (generally 20 minutes ~ 50 minutes or so), causing some website pages to go wrong during access; after defining the log, you cannot find anything to view the log; preliminary judgment due to the previous libevent upd
In 08, when contacted Memcached, it also sniffed at its client products, after all, manual code does not have a variety of ORM Native XML configuration convenient. Still, memcached is now an integral part of the server architecture.
RELATED Links:Memcached notes-(i) Installation General error MonitoringMemcached Notes--(ii) xmemcachedspring integrationMemcached Notes--(iii) Summary of the use of memca
The Web server uses memcached, but does not know why memcached always hangs (basic 20 minutes ~ 50 minutes), causes some website page to visit the time error; When you define the log, you cannot see what ; Preliminary determination is related to the prior update of libevent. Because the online server, so first with the foot to make up for the next
#!/bin/sh
pid= ' ps aux|grep-v grep|grep
compatible applicationsMemcached Full Anatomy Series Tutorial –5.memcached application and Compatibility program[2010-01-07 22:29 by Plhwin | visit: 5,189 times | View comments Post comments]Memcached's serial is finally over. So far, we have introduced the topics directly related to memcached, this time introduced some Mixi cases and practical application topics, and introduced some
Link: http://gihyo.jp/dev/feature/01/memcached/0005
Here is the link to this series of articles:
1st times: http://www.phpchina.com/html/29/n-35329.html
2nd times: http://www.phpchina.com/html/30/n-35330.html
3rd Times: http://www.phpchina.com/html/31/n-35331.html
4th times: http://www.phpchina.com/html/32/n-35332.html
5th times: http://www.phpchina.com/html/32/n-35333.html
I am Nagano of Mixi. The memcac
no longer connected to the memcached server in failure_timeout seconds if the last connection failed. Our setting is 1 seconds and more than 3 times.In addition, Mixi also sets a naming convention for the key names of cached data that is shared by all users, and data that conforms to the naming convention is automatically saved to multiple memcached servers, and only one server is selected from it when tak
, and only one server is selected from it when taken. Once you have created the library, you can make memcached server failures no longer having other effects.memcached Application ExperienceThis concludes with an introduction to the memcached internal constructs and function libraries, followed by some other application experiences.Start with DaemontoolsNormally memcac
that has happened several times memcached process has died. The architecture guarantees that the service will not be affected even if there are several memcached failures, but for servers memcached the process to die, as long as the memcached is restarted, the method of monitoring
date, but instead looks at the timestamp of the record at get and checks whether the record is out of date. This technique is called lazy (lazy) expiration. As a result, memcached does not consume CPU time on outdated monitoring.3. LRU4. Memcached takes precedence over the space of a record that has timed out, but even so, there is a lack of space when appending
What is memcached?Memcached is a software developed by Brad Fitzpatric, a Danga Interactive company in LiveJournal. It has become an important factor in enhancing Web application extensibility in many services such as watercress, Facebook, and Vox.Many Web applications save data to an RDBMS, where the application server reads the data and displays it in the browser. However, with the increase of data volume
Memcached is a cache, so data is not permanently stored on the server, which is the precondition for introducing memcached into the system. This article introduces the data deletion mechanism of memcached and the latest development direction of memcached-binary protocol (binary Protocol) and external engine suppor
Memcached don't have to introduce--
1: Install memcached Server Software under Windows, download and upload cloud disk---Portal Remember to bring the key: YKRC
After the decompression inside the installation instructions are included in the installation tutorial.
2: Software installed in the server host, then PHP needs an extension to connect to the memcached, t
Data-id= "1190000005001849" data-licence= "" >
Memcache and memcached is actually a thing, just php if the extension is not the same one is Php_memcache.dll and Php_memcached.dll, 2009 years or so someone rich memcache usage and performance, Have memcached, usage also has a great improvement such as adding getmulti () Bulk Get key value
Memcache class
$memcache = new Memcache;
$memcache->connect('127.0.0.1'
.
Insert data: Find the appropriate length of the block, and then insert, there will be a waste of memory.
LRU, idle> expired> Minimum Access
Inert deletion: it does not provide a mechanism for monitoring data to expire, but is inert. When a key data is queried, It is discarded if it expires.
Cluster construction principle:
The Memcache server does not provide the cluster function, but the cluster configuration is implemented throug
Memcached source code analysis ----- install, debug, and read the memcached source code ----- memcached
Reprinted please indicate the source: http://blog.csdn.net/luotuo44/article/details/42639131
Installation:
Install Libevent before installing memcached. Now it is assumed that the Libevent is installed in the/usr/l
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.