Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 242 by [email protected]: memcached breakdown when the memory
close to run up
http://code.google.com/p/memcached/issues/detail?id=242
What steps will reproduce the problem?
1. Start memcached with -L and max memory :
/usr/local/memchached/bin/memcached -d -m 256 -p 11211 -u root -C -L
2.set some same size items into one slab until the bytes is close to the
limit_maxbytes.now,the memory run up and begin to LRU in this slab:
<?php
for($i=0;$i<3000000;$i++)
$m->set('key'.microtime(true).rand(0,999),'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'.time());
?>
limit_maxbytes : 268435456
bytes : 253897218
(SLAB : 3)
number 1765888
evicted 1231236
3.set one or two ... maybe three longer items into memcached:
$m->set('key'.microtime(true).rand(0,999),'aaaaaaaaa...
....very_very_very_long....aaaaaaaaa'.time());
What is the expected output? What do you see instead?
I expected the items may be inserted successfully or memcached refuse the
request.
But... the memcached is breakdown immediately.and the system log show:
Dec 23 11:24:32 bogon kernel: memcached[10354]: segfault at
0000000000000024 rip 000000000040d5ba rsp 0000000041b64de0 error 4
What version of the product are you using? On what operating system?
centos 64bit/PHP538/memcached 1.4.10/pecl memcache and memcached client
Please provide any additional information below.
please help me!