|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61007 memcached extension persistent connections not persistent
Submitted: 2012-02-08 09:10 UTC Modified: 2013-02-18 00:35 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: stefan dot koopmanschap at gmail dot com Assigned:
Status: No Feedback Package: memcached (PECL)
PHP Version: 5.3.10 OS: Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2012-02-08 09:10 UTC] stefan dot koopmanschap at gmail dot com
Testing a new application with memcache for caching, we had issues with 
persistent connections not being persistent. We'd never experienced issues with 
this before while using memcache extension, but after switching to memcached, we 
ran into this issue. After some discussions on IRC (with amongst others Liz 
Smith), we decided to test the latest memcached from Github 
( Using the test script, we 
still see huge amounts (>2000) connections to memcache when running ab scripts to 
test big amounts of requests to the script, where we'd only expect a few 
connections (and we can confirm that there are only a few when using memcache 

Test script:
$cache = new Memcached('persistent');
$cache->addServer('localhost', 11211);

Expected result:
1 or a couple of open connections to memcache

Actual result:
>2000 open connections to memcache


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-03-03 19:32 UTC]
Please try using this snapshot:
For Windows:

Please try v 2.0 of memcached
 [2012-03-03 19:32 UTC]
-Status: Open +Status: Feedback
 [2013-02-18 00:35 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 20 20:01:32 2024 UTC