Closed (fixed)
Project:
Memcache API and Integration
Version:
6.x-1.4
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 May 2009 at 11:16 UTC
Updated:
27 Aug 2014 at 18:15 UTC
Jump to comment: Most recent
Comments
Comment #1
ezraw commentedIf 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
Comment #2
ezraw commentedComment #3
navaneeth_r commentedThanks for your response. I checked and realized that the memcache is working fine.
Comment #5
pratheeshpiano commentedhow to check memcahe wroking in windows server in commnad line
Comment #6
catchClosing this again since it's an old support request, and this isn't specific to Drupal at all.
Comment #7
ericpai commentedI 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
Comment #8
ericpai commentedI 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
Comment #9
CarbonPig commentedSubscribe - It's not really clear if it is working
Comment #10
catchEnable devel query log, if there are are queries against {cache} etc., it's not working, otherwise it is.
Comment #11
bstoppel commentedFrom 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.
Comment #12
Tim Jones Toronto commentedA Memcached tool is phpMemcachedAdmin: http://code.google.com/p/phpmemcacheadmin/
For memcached administration and to monitor/debug etc.
To check the status of Drupal:
Hope this helps if you test this utility out.
Comment #13
dianikol commentedBy 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??
Comment #14
liam morland@#7 Issue for that problem: #2328707: Call to undefined function dmemcache_stats().