Closed (fixed)
Project:
Memcache API and Integration
Version:
6.x-1.4
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
31 Oct 2009 at 15:31 UTC
Updated:
10 May 2010 at 22:10 UTC
I have installed memcahe on my Ubuntu server and I know it is functioning properly (running on the default port of 11211)
I then installed this module and configured as outlined in the docs:
$conf = array(
'cache_inc' => './sites/all/modules/memcache/memcache.inc',
);
When I benchmark the performance using Apache Benchmark there is a significant reduction in the HTTP Requests per second.
Without memcache I get 20 request per second, with memcache I get 5.
According to the Memcache status:
pid 6670
uptime 17 min 52 sec
time October 31, 2009 - 17:22
version 1.2.2
pointer_size 32
rusage_user 0.072988
rusage_system 0.263959
curr_items 50
total_items 2542
bytes 223.88 KB
curr_connections 1
total_connections 193
connection_structures 6
cmd_get 5963
cmd_set 2542
get_hits 2514
get_misses 3449
evictions 0
bytes_read 20.95 MB
bytes_written 5.39 MB
limit_maxbytes 64 MB
threads 1
hit_percentage 42.16%
mem_used 0.34%
Any my memcached statistics:
get:
variables
links:navigation:page-cid:admin/reports/memcache:1
links:navigation:tree-data:9e9d1231ce939f72c82cca0774656ab0
tags_info
mp3player_default
mp3player_default
admin_menu:1:en
theme_registry:garland
imagecache:presets
links:primary-links:page-cid:admin/reports/memcache:1
links:primary-links:tree-data:98877dc088ba2c30c49c8a6a1d99dcc2
links:secondary-links:page-cid:admin/reports/memcache:1
links:secondary-links:tree-data:5d6d3aaaaef5fba302ce62698fa37bbe
admin_menu:1:en
links:admin_menu:all-cid:0
links:admin_menu:tree-data:8fe2e85ae0c1a99779cc3d969a89cd63
pages
tags_info
tags_info
tags_info
set:
variables
links:navigation:tree-data:9e9d1231ce939f72c82cca0774656ab0
links:navigation:page-cid:admin/reports/memcache:1
mp3player_default
imagecache:presets
theme_registry:garland
links:primary-links:tree-data:98877dc088ba2c30c49c8a6a1d99dcc2
links:primary-links:page-cid:admin/reports/memcache:1
links:secondary-links:tree-data:5d6d3aaaaef5fba302ce62698fa37bbe
links:secondary-links:page-cid:admin/reports/memcache:1
links:admin_menu:tree-data:8fe2e85ae0c1a99779cc3d969a89cd63
links:admin_menu:all-cid:0
admin_menu:1:en
admin_menu:1:en
pages
tags_info
hit:
tags_info
tags_info
tags_info
bins:
cache
cache
cache_menu
cache_menu
cache_menu
cache_menu
cache_nodewords
cache
cache
cache
cache_admin_menu
cache
cache
cache
cache
cache_menu
cache_menu
cache_menu
cache_menu
cache_menu
cache_menu
cache_menu
cache_menu
cache_menu
cache_menu
cache_menu
cache_menu
cache_menu
cache_menu
cache_admin_menu
cache_nodewords
cache_nodewords
cache_nodewords
cache_nodewords
cache_nodewords
cache_nodewords
Can soemone point me in the right direction for getting it to run properly?
Comments
Comment #1
bennos commentedyour array does not define the memcached instance like:
<?php
'memcache_servers' => array('localhost:11211' => 'default',
'localhost:11212' => 'pages'),
'memcache_bins' => array('cache_page' => 'pages'),
look for more in the documentation.
It is only missconfigured.
Comment #2
jeremy commentedIt's much harder to upgrade the latest development version (which will be 6.x-1.5), but either way solved per the above reply.