php.net |  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
Votes:1
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 2.6.27.59
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
Description:
------------
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 
(https://github.com/php-memcached-dev/php-memcached). 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 
extension).

Test script:
---------------
<?php
$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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-03-03 19:32 UTC] iliaa@php.net
Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/

Please try v 2.0 of memcached
 [2012-03-03 19:32 UTC] iliaa@php.net
-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-2020 The PHP Group
All rights reserved.
Last updated: Sun Jul 12 14:01:25 2020 UTC