Closed (fixed)
Project:
Memcache API and Integration
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
29 Jan 2009 at 15:43 UTC
Updated:
17 Mar 2010 at 11:29 UTC
Jump to comment: Most recent file
Comments
Comment #1
bacchus101 commentedI get the same thing (except it is line 113.)
Subscribing.
Comment #2
andreiashu commentedHi bacchus101,
Can you provide more detailed information, like Drupal, memcache module, memcache PECL library, memcached versions and also PHP version ?
I'm thinking that maybe we (or someone else) can find out something common to our installations that could help replicate and then solve this issue.
Thanks,
andreiashu
Comment #3
bacchus101 commentedDrupal Version: 6.10
Memcache API and Integration: 6.x-1.2
PHP: 5.2.9-0
Lighttpd server (on Ubuntu 8.10 x_64)
Memcached: 1.2.2
memcache pecl library: 2.2.5
Everything seems to be working except the stats.
Comment #4
asb commentedHi,
similar error here:
OS: FreeBSD 7.1-RELEASE-p4
Drupal Version: 6.12
Memcache API and Integration: 6.x-1.2
PHP: 5.2.8 with Suhosin-Patch 0.9.6.3
Lighttpd: 1.4.22 <-- someone having this problem with Apache?
Memcached: 1.2.8
memcache pecl library: 3.0.4
MySQLi 5.0.75
Greetings, -asb
Comment #5
kruser commentedI'm getting this also. I have current versions of everything, running LAMP on centos.
Here is my config...
Comment #6
kruser commentedAlso, our server is 64-bit so we thought that might be something that could be different between our servers. Not sure how that would affect memcache but thought it might be a helpful clue in some way.
Comment #7
bacchus101 commented@2440media2
I recently moved over to a 32 bit server from a 64 bit server and I am still having the same issue.
Comment #8
kruser commented@bacchus101 - I can confirm that memcache is running using this tool (http://livebookmark.net/journal/2008/05/21/memcachephp-stats-like-apcphp/) - though I'm getting more misses than hits - how about you?
Comment #9
bacchus101 commentedActually, memcache is running "fine" for me and I am using the same tool (80% default, 80% page and 91% filter hit rate.)
That is why this statistic error is more of an inconvenience than an actual problem (although it would be nice if it worked.)
Comment #10
printing commentedSubscribing
Comment #11
printing commentedThis appears to be working for me now. Turns out that we were on a 3.x version of the PECL Memcache so the solution was to downgrade to 2.2.5 and flush the cache. We're getting more hits than misses now. The only one that is off is the filter which has almost no hits...still working on that one.
Comment #12
fleshgrinder commentedSubscribing, same error. My system:
OS: Debian 5 (Lenny)
Drupal: 6.13 (more or less fresh)
Memcache API: 6.x-1.2
PHP: 5.2.6-1 with Suhosin-Patch 0.9.6.2
Apache: 2.2
Memcached: 1.2.8
memcache PECL lib: 3.0.1
MySQLi: 5.0.51a
Comment #13
kruser commentedcheck your version of memcache PECL lib - 3.x seemed to be the problem
Comment #14
neclimdulAgreed, rolled back to pecl-memcache 2.2.5 and it fixed the problem. Seems to be the solution. Too bad
makes it sound like there might not be an elegant solution for the Drupal module to handle the difference.
Comment #15
jaydub commentedThis is a result of changes in the PHP PECL Memcache extension starting with version 3.0. A look through the source code for the PHP Memcache extension yields this function in memcache.c:
The mmc_stats_checktype function is called when the PHP memcache functions memcache_get_stats() or memcache_get_extended_stats() are called and if the mmc_stats_checktype() function returns TRUE then you get the 'Invalid stats type' error reported above.
From the types checklist above you can see that 'maps' is not listed which means that the 'maps' type which works in the PHP PECL memcache 2.x release will not work here. Likewise there does not seem to be a default stats type (an empty string is passed in the Drupal memcache module dmemcache_stats() function in dmemcache.inc when a stats type is not specified).
So it would seem that there's not way to get the basic server stats.
Comment #16
jaydub commentedThe attached patch works around the stats 'checktype' in the new Memcache extension and results in the basic Memcache stats data successfully displaying. The 'maps' stats type still throws an error because that stats type is no longer available in the 3.x version of the Memcache extension.
This was tested and works for both the 5.x and 6.x memcache modules. If someone who is running the PHP PECL Memcache 2.x version of the extension to verify that the stats still work then I think the main stats problem will be solved across the 2.x and 3.x versions of the Memcache extension.
Comment #17
meba commentedI can confirm this fixed the problem on PECL 3.x
Comment #18
jeremy commentedThanks for the patch, fix committed. (Sorry, I meant to commit it separately crediting you for the patch, but it slipped into my last commit):
http://drupal.org/cvs?commit=263340
Comment #20
kenorb commentedThanks.