Closed (fixed)
Project:
Memcache API and Integration
Version:
6.x-1.4
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Jun 2008 at 14:15 UTC
Updated:
9 Sep 2010 at 22:20 UTC
Hello
My Homepage has a Problem with memcache. It works only for some hours and the it gives a lot letter back.
When I killed memcache, everything works. The errror comes only on the first page and not on subpages.
My enviroment:
Lighttp 1.4.19, PHP 5.2.6 with APC and Memcache, Mysql5, AMD64 maschine with Ahtlon X64 X2 6000+ and 8 GB RAM, Drupal 5.7 and a lot of modules. OS is Debian Lenny 64Bit
Some pictures:
Everything is normal
http://drupal.org/files/memcache_normal-without-error.jpg
Memcache brokes the Start Page
Anyone has an idea, what happens?
Comments
Comment #1
bennos commentedsorry forgotten the JPG with the error.
http://drupal.org/files/memcache-error-ap24.jpg
I hope anyone has an idea.
thx
bennos
Comment #2
bennos commentedThe Screenshot Links does not work, so I have uploaded it to my Site.
Screenshot normal with Memcache works right:
http://www.arbeitsplatz24.com/files/memcache_normal-without-error.jpg
Screenshot with crashed Startpage.
http://www.arbeitsplatz24.com/files/memcache-error-ap24.jpg
Comment #3
robertdouglass commentedInteresting. The screenshot you show reminds me of what one sees when you get a compressed page back (used to happen when both Drupal and apache compressed). Memcache also compresses. As an experiment you can try using no compression with memcache. In dmemcache.inc there is this function:
Try changing the line
if (!$mc->set($full_key, $value, TRUE, $exp)) {toif (!$mc->set($full_key, $value, FALSE, $exp)) {and see if that makes a difference.Are you using any other cache related modules (like advcache)?
Comment #4
bennos commentedthx Robert. I will try it out and give you feedback.
I also uses Advcache. My Enviroment is above.
I trying to find out what happens and where it happens. I have splitted memcache in several daemons and I assigned to every daemon a different "Bin". When I get the next error, I can shut down memcache daemons step by step.
Comment #5
bennos commentedI have changed the line, but my line was a bit different.
if (!$mc->set($full_key, $value, MEMCACHE_COMPRESSED, $exp)) {Changing MEMcache_compressed to false, make no difference.
I have looked at my PHP Config. Only typically Modules are installed, but zlib compression is on.
Could it be a problem?!?
Comment #6
bennos commentedProblem solved.
the zlib libary was activated in the php.ini. I tried my old memcache configuration and deactivated zlib compression in php.
Everything works fine now for 2 days.
I think there shoul be an advise in the install.txt or readme.txt that PHP zlib an Memcache with compressing should not be activated at the same time.
bennos
Comment #7
robertdouglass commentedThanks. Reported on the project page and in the README.txt.
Comment #8
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #9
asb commentedHi,
I have zlib compression activated in my
/etc/php5/apache2/php.ini(Debian GNU/Linux "Lenny"):But in 6.x-1.4 I've never encountered any problems like described in the issue for 5.x
Could someone verify if this incompatibility is still an issue?
Thanks & greetings, -asb
Comment #10
Terko commentedI have the same problem, but it happens when I clear the caches. Then the CSS of the first page didn't load proper and I need to flush Memcache to fix it. I don'thave zlip.output turned on.
Comment #11
bennos commentedfrom 2008. now an stable D6 version and a lot of progress in the memcache Base, It could have not more any effects with zlib On/Off.
@teri
check your settings and versions of memcache or memcached pecl and memcached daemons. there are some problem and you must find a stable setup und config.
try it out.
Comment #12
jeremy commentedI suspect this was an issue with Memcache's lack of wildcard support. In other words, I do not expect this to be an issue any longer.