{"id":19394,"date":"2015-05-04T16:02:38","date_gmt":"2015-05-04T10:32:38","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=19394"},"modified":"2016-12-19T15:07:34","modified_gmt":"2016-12-19T09:37:34","slug":"monitoring-of-memcache","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/monitoring-of-memcache\/","title":{"rendered":"Monitoring of  Memcached"},"content":{"rendered":"<p>Memcached is an ideal platform for accelerating application performance. It is important to identify and resolve the problem before it impact business. phpMemcachedAdmin is a great tool to proactively monitor the health and performance of Memcached. It will give you clear picture of hit and miss ratio and as well eviction rate in real time. It also support command execution and dumping keys value.<\/p>\n<h3 style=\"text-align: justify;color: #ff9900\">Configuration Steps:-<\/h3>\n<p>1. PhpMemcachedAdmin Installation.<br \/>\n2. Nginx configuration.<br \/>\n3. Check Cache Stats.<\/p>\n<p><strong>1. PhpMemcachedAdmin Installation:-<\/strong><\/p>\n<p>[js]<br \/>\ncd \/var\/www\/html\/admin\/<br \/>\nwget<br \/>\ntar xvf phpMemcachedAdmin*<br \/>\nchmod 0777 Config\/Memcache.php<br \/>\nchmod 0777 Temp\/<br \/>\n[\/js]<\/p>\n<p>To edit configuration file run below command:-<\/p>\n<p>[js]<br \/>\nsed -i s\/127.0.0.1\/&lt;Memcahce End Point&gt;\/g Config\/Memcache.php<br \/>\n[\/js]<\/p>\n<p>&nbsp;<\/p>\n<p><strong>2. Nginx configuration:-<\/strong><br \/>\nIn Nginx set credentials, allow access from your IP. So, it can be accessible only from your premises.<\/p>\n<p>[js]<br \/>\nvi \/etc\/nginx\/sites-enabled\/default<br \/>\nlocation \/admin\/ {<br \/>\n  \t\t\t\tauth_basic  &quot;Restricted&quot;;<br \/>\n                auth_basic_user_file   \/etc\/nginx\/.htpasswd\/passwd;<br \/>\n                allow x.x.x.x;   #enter your ip here<br \/>\n                allow 127.0.0.1;<br \/>\n                deny all;<br \/>\n}<br \/>\n[\/js]<\/p>\n<p>With help of htpasswd command set username and password and then restart service:-<\/p>\n<p>[js]<br \/>\nmkdir \/etc\/nginx\/.htpasswd\/<br \/>\nhtpasswd -c \/etc\/nginx\/.htpasswd\/passwd admin<br \/>\nservice nginx restart<br \/>\n[\/js]<\/p>\n<p>&nbsp;<\/p>\n<p><strong>3. Check Cache Stats:-<\/strong><br \/>\nWe have done with configuration steps and to access front end type your server IP in the browser.<\/p>\n<p><img decoding=\"async\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/05\/memcache.png\" alt=\"\" \/><\/p>\n<p>I hope it would help you to monitor the availability and statistics of Memcached.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Memcached is an ideal platform for accelerating application performance. It is important to identify and resolve the problem before it impact business. phpMemcachedAdmin is a great tool to proactively monitor the health and performance of Memcached. It will give you clear picture of hit and miss ratio and as well eviction rate in real time. [&hellip;]<\/p>\n","protected":false},"author":165,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":5},"categories":[1174],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/19394"}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/165"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=19394"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/19394\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=19394"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=19394"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=19394"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}