[horde] Trouble with Horde_Memcache

Jan Schneider jan at horde.org
Thu Jul 7 18:24:33 UTC 2016


Zitat von Jens Wahnes <wahnes at uni-koeln.de>:

> Hi,
>
> after updating to the latest versions of Horde packages, including  
> version 2.1.0 of Horde_Memcache, I found a lot of lines in the  
> logfile that said
>
> WARN: HORDE PHP ERROR: MemcachePool::setcompressthreshold(): No  
> servers added to memcache connection [pid 24267 on line 167 of  
> "/usr/share/pear/Horde/Memcache.php"]
>
> Looking at the output of netstat, however, I'm not terribly  
> convinced that memcache is actually not being used. I can see that  
> there are many open connections to the memcache server.
>
> Downgrading back to version 2.0.7 of Horde_Memcache made these  
> messages disappear, but I'm not sure if that is because there is a  
> bug in version 2.1.0 or if it is because the older version just did  
> not log such a message? Maybe the new version is even logging this  
> message in spite of everything being fine?
>
> The settings in conf.php regarding Memcache look like this:
>
> $conf['hashtable']['params']['hostspec'] = array('localhost', 'foo');
> $conf['hashtable']['params']['port'] = array('11211', '11211');
> $conf['hashtable']['params']['weight'] = array('90', '10');
> $conf['hashtable']['params']['persistent'] = true;
> $conf['hashtable']['params']['c_threshold'] = 1200;
> $conf['hashtable']['params']['compression'] = true;
> $conf['hashtable']['params']['large_items'] = true;
> $conf['hashtable']['driver'] = 'Memcache';
>
> Any thoughts on this?
>
> Thanks
> Jens

I've moved the setcompressthreshold() method inside the code for some  
clarity. Maybe I moved it too far and too early in the memcache setup.  
Please create a bug ticket.

-- 
Jan Schneider
The Horde Project
http://www.horde.org/



More information about the horde mailing list