php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41607 Unexpected Memcache::get(): marked server ... as failed
Submitted: 2007-06-06 07:39 UTC Modified: 2007-06-06 08:24 UTC
From: php at koterov dot ru Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 5.2.3 OS: Linux
Private report: No CVE-ID: None
 [2007-06-06 07:39 UTC] php at koterov dot ru
Description:
------------
On heavy loaded server (20-40 requests/s) I periodically (0nce a second) get an error message from memcached extension:

# tail -f php-error_log |grep failed
PHP Notice:  Memcache::get(): marked server '127.0.0.1:11211' as failed
...

But the server is up, the maximum number of connections (-m 1024) is not reached. And this error does not depend on how long the memcached server is running: a couple of minutes after memcached restart I can watch the same error, the statistics is:

stats
STAT pid 19854
STAT uptime 337
STAT time 1181115051
STAT version 1.2.2
STAT pointer_size 64
STAT rusage_user 1.727737
STAT rusage_system 6.867955
STAT curr_items 63413
STAT total_items 64222
STAT bytes 114838739
STAT curr_connections 16
STAT total_connections 3888
STAT connection_structures 27
STAT cmd_get 259618
STAT cmd_set 64563
STAT get_hits 196161
STAT get_misses 63457
STAT evictions 0
STAT bytes_read 148496793
STAT bytes_written 394115419
STAT limit_maxbytes 1073741824
STAT threads 1

I tried to disable setCompressThreshold, increase memcache.chunk_size, disable persistent connections, enlarge timeout parameters, but an error still happens. Furthermore, this error happens on Windows more frequently, even without heavy load, but I cannot reproduce.

I have the only memcached server added:

$this->connection = new Memcache();
$this->connection->addServer(
    "localhost", 
    11211,
    true,
    1,
    10, 
    2
);


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-06-06 08:24 UTC] tony2001@php.net
Please report issues in PECL extensions to PECL bug tracker.
http://pecl.php.net/package/memcache
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 05:01:27 2024 UTC