line, direct operation stats, stats slabs and other commands for analysismemcached.php = "PHP system using Apache service, graphical interfaceDaemontools = "Don't know what it is, write it down first."Nagios = "Checktcp =" don't know what it is, write it down first.Optimization ideas1. Reasonable growth factor and control the reasonable consumption of memory2. cache update mechanism = Update the cache when it is about to expireMemcached Learning--memcached
database cache.2) The above is suitable for lnmp,lamp environment.3) memcached server can also be multiple units via hash dispatch.################# #针对memcached单点故障出现的问题解决方案: ( also not perfect, no fix master hangs, re-open Data unrecoverable problem)1, high availability for memcachedHttp://blog.snsgou.com/post-800.html2, the use of Sina Memcacheddb, the original client is still
What is memcached? Memcached is a distributed memory cache server, which is used to cache database query results, reduce the number of database accesses, and improve the speed and extensibility of dynamic Web pages.Characteristics of memcachedA. Simple protocol, memcached use simple text line protocolB. Libevent-based event handlingC. Built-in memory storage mode
. Although it has good stability, it faces the increasing number of users and massive data volumes, high concurrency and other problems are hard to cope. So in the past one or two years, many open-source teams and Technology enthusiasts have admired the "nosql" technology ). Anyone who knows a little about the computer knows that memory read/write is definitely much more efficient than disk I/O operations. But with memcached, can we abandon the tradit
10Notification_period 24x7Notification_options W,u,c,rContact_groups Babelgroup}The others can be added according to their own requirements.Okay, let's restart the Nagios service./etc/init.d/nagios restartLook at the resultsOh well, Nagios monitoring memcached Basic is done.Also according to Check_tcp-h Localhost-p 11211-t 5-e-S ' stats\r\nquit\r\n '-e ' uptime '-M critThe output of the results of their ow
In the previous article "using Memcached to Improve the Performance of. NET Applications", Zhou Gong described how to use Memcached in. NET to Improve the Performance of. NET applications. In actual use, Memcached may be suspended for some unpredictable reasons. Once such a situation occurs, it will again put a huge pressure on the database, therefore, you must m
1. Run memcached in verbose modeStart memcached Plus-V or-VV optionRef #/usr/local/bin/memcached-d-M 2048-u root-l 192.168.1.20-p 12111-c 1024-p/tmp/memcached.pid-vv-V displays error and warning messages-VV will display error warning message and each client's command and response2.telnet Way Access memcachedRef # Telnet 192.168.1.20 12111Stats: The server will re
After using memcached, definitely want to know the effect of cache, for memcached some running state monitoring is necessary, memcached provided stats This command can view the memcached related state, but not very detailed, such as:
[Java] View plain copy print? [root@bogo
to use two instructions to phpize and Php-configSo yum install Php-develIn this case, the Yum installation instructions are under/usr/bin/and the PHP module directory is the corresponding/usr/lib/php/under the/usr/lib64/php/32-bitPhpize./configure--with-php-config=/usr/bin/php-configAfter installation, there will be a hint like this installing shared extensions:/usr/lib64/php/modules/memcache.soThen modify the/etc/php.ini to change Extension_dir = "./" revision toExtension_dir = "/usr/lib64/php
After using memcached, you certainly want to know the effect of the cache. It is necessary to monitor some running statuses of memcached. memcached provides the stats command to view the status of memcached, but it is not very detailed, for example:
[root@bogon bin]# cd /usr/local/bin[root@bogon bin]# telnet 127.0.0.1
The running status monitoring of Memcached servers can generally be monitored using a dedicated operating system. However, developers can use the statistical commands (stats) supported by memcached protocol in linux. 1. Use telnet to connect to the memcached server telnet10.10.10112112,
The running status monitoring of memcached servers can generally be monitored using a dedicated operating system. However, developers can use the statistical commands (Stats) supported by memcached protocol in Linux.
1. Use telnet to connect to the memcached Server
telnet 10.10.10.10 11211
2.
MemAdmin, a Memcached management and monitoring tool based on PHP5 amp; JQuery, is a visualized Memcached management and monitoring tool developed using PHP, which is small in size and easy to operate. Main functions: Server Parameter Monitoring: STATS, SETTINGS, ITEMS, SLA
After installing Zabbix server and client (PS: Please refer to: http://www.zifangsky.cn/576.html), we can use Zabbix to monitor some services, such as: Zabbix predefined monitoring CPU, memory, Basic system parameters such as disks. In addition, we can configure Zabbix to monitor the number of memcached, Tomcat, Nginx, TCP port connections, and order number and other specific business system statusBelow I w
The simplest and most straightforward way to do this is to add the -vv parameter at the start of the memcached to print each client's request and corresponding at the console, which is ideal for development. Another straightforward way to do this is through Telnet, for example: If the server is a native 11211 port, you can usetelnet localhost 11211Log in, and then use stats to view the server status.In addition, the better choice is to use a number of
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 run-time lengthCurr_connections # # Current number of connectionsTotal_connections # # total number of connections ever openedConnection_structures # # number of
Memadmin is a visual memcached management and monitoring tool developed based on PhP5 jquery. It is small in size and easy to operate.
Main functions:
Server parameter monitoring: Real-Time refresh of stats, settings, items, slabs, and sizes
Server performance monitoring: real-time
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.