I installed the memcache using Memcache API and Integration document given by http://drupal.org/project/memcache

How to check the memcache is working in my site..

R.Navaneethakrishnan

Comments

ezraw’s picture

If you start memcache via the command line and set it to be verbose you will see it being written to:

memcached -u www-data -vv

You can also see the status at /admin/reports/memcache

ezraw’s picture

Status: Active » Fixed
navaneeth_r’s picture

Thanks for your response. I checked and realized that the memcache is working fine.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

pratheeshpiano’s picture

Version: 5.x-1.9 » 6.x-1.4
Status: Closed (fixed) » Needs work

how to check memcahe wroking in windows server in commnad line

catch’s picture

Priority: Critical » Normal
Status: Needs work » Closed (fixed)

Closing this again since it's an old support request, and this isn't specific to Drupal at all.

ericpai’s picture

I went to admin/reports/memcache and I get an error of:
Fatal error: Call to undefined function dmemcache_stats() in /home/drupal_testing/sites/all/modules/memcache/memcache_admin/memcache_admin.module on line 115
And the page did not load.
I applied the patch here http://drupal.org/node/885478 to my Drupal 6.20 install

This is what I have in settings.php:
$conf['cache_inc'] ='./sites/all/modules/memcache/memcache.inc';
$conf = array(
'memcache_servers' => array('192.168.100.244:11211' => 'default',
'192.168.100.244:11212' => 'pages'),
'memcache_bins' => array('cache_page' => 'pages'),
);

thanks

ericpai’s picture

I don't have the errors anymore. But I'm not sure if Memcache is working or not. Here's my settings.php:

$conf['cache_inc'] ='./sites/all/modules/memcache/memcache.inc';
$conf['memcache_servers'] = array('192.168.100.244:11211' => 'default');
$conf['memcache_bins'] = array(
'cache' => 'default',
'cache_block' => 'default',
'cache_bootstrap' => 'default',
'cache_content' => 'default',
'cache_filter' => 'default',
'cache_form' => 'default',
'cache_menu' => 'default',
'cache_page' => 'default',
'cache_pathdst' => 'default',
'cache_pathsrc' => 'default',
'cache_uc_price' => 'default',
'cache_update' => 'default',
'cache_views' => 'default',
'cache_views_data' => 'default',
'session' => 'default',
'users' => 'default',
);

--------------------------------
I can see a list of stats on this page now : admin/reports/memcache/
Is there a way I can tell if it's really working?
I'm looking at the page load times using Devel, but I don't see a real difference.

thanks

CarbonPig’s picture

Subscribe - It's not really clear if it is working

catch’s picture

Enable devel query log, if there are are queries against {cache} etc., it's not working, otherwise it is.

bstoppel’s picture

From the command line, the best way that I have found is

echo stats | nc 127.0.0.1 11211*

If it doesn't return anything, memcache isn't running. Otherwise it should return a bunch of stats including uptime (and hit and miss counts, which I haven't read up on yet.)

The reference article is here,
http://www.mysqlperformanceblog.com/2008/11/26/a-quick-way-to-get-memcac...

*This assumes the system has nc (netcat) installed and memcache is local on the normal port. Adjust as needed.

Tim Jones Toronto’s picture

A Memcached tool is phpMemcachedAdmin: http://code.google.com/p/phpmemcacheadmin/

For memcached administration and to monitor/debug etc.

To check the status of Drupal:

  1. On main page, use the drop-down to show server - e.g. 127.0.0.1:11211
  2. Then click 'See this Server Slabs Stats'.
  3. It will show a full overview of slabs used. You can then click each slab to examine the items (Drupal) data in each, the size and expiry.

Hope this helps if you test this utility out.

dianikol’s picture

By enabling the query log from devel module as #10 said and cache tables queries did not run, Then i enable memcache admin to view the hits per page. The hits column is always 0 or 1. Is it a good or bad sign??

liam morland’s picture

Issue summary: View changes