I've followed the directions for installing memcached to the letter, as far as I can tell, but when I go to the memcached statistics report, I only see empty rows: http://i.imgur.com/vFxFD.png

Though when I turn on "Show memcache statistics at the bottom of each page" it seems that memcached is being hit: http://i.imgur.com/wRG5u.png

Am I missing something, or is this a bug?

CommentFileSizeAuthor
#3 memcache_stats_report_fixes.patch2.86 KBalfaguru
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

JordanMagnuson’s picture

Running latest version of pecl memcache (not memcached). Here's my relevant settings.php info:

/**
 * Memcached
 */
$conf['cache_backends'][] = 'sites/all/modules/memcache/memcache.inc';
$conf['cache_default_class'] = 'MemCacheDrupal';
//$conf['memcache_key_prefix'] = 'pixelscrapper'; // Only need this if we are using memcached with multiple sites on this server

// Servers
$conf['memcache_servers'] = array(
  '5.9.54.111:11211' => 'default',
);

// Bins
$conf['memcache_bins'] = array(
  'cache_performance'     =>  'default', // performance_logging module
  'cache'                 =>  'default',
  'cache_admin_menu'      =>  'default',
  'cache_apachesolr'      =>  'default',
  'cache_block'           =>  'default',
  'cache_bootstrap'       =>  'default',
  'cache_field'           =>  'default',
  'cache_filter'          =>  'default',
  'cache_form'            =>  'default',
  'cache_image'           =>  'default',
  'cache_libraries'       =>  'default',
  'cache_mailchimp_user'  =>  'default',
  'cache_menu'            =>  'default',
  'cache_page'            =>  'default',
  'cache_path'            =>  'default',
  'cache_rules'           =>  'default',
  'cache_token'           =>  'default',
  'cache_update'          =>  'default',
  'cache_views'           =>  'default',
  'cache_views_data'      =>  'default',
);
alfaguru’s picture

If you edit the URL you are requesting from admin/reports/memcache to admin/reports/memcache/default you'll see the report. I think this is because there's an assumption in the code that the default bin will be called "cache" rather than "default". It's a little confusing. The default page ought to show something if there's other bins (or should they be "clusters"? I find the code a little baffling.)

alfaguru’s picture

In my local copy I have reorganised the menus and added a page which lists all the entries for the bins. This seems more satisfactory. I attach a patch which I built from the repo I am working on so it's not quite in the 'correct' format. Someone may find it useful, though.

JordanMagnuson’s picture

Thanks for the tip. It makes much more sense that the stats page would show the available bins than showing... nothing.

And I didn't see any of this expected bin name business documented anywhere...

Jeremy’s picture

Issue summary: View changes

Error reporting has been drastically improved as of 7.x-1.1-beta3.

Jeremy’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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