why do you need to restart it?  you're telling it that it's allowed to use
up to 2G and it never breaks that...  flush_all only flushes the cache, it
doesn't deallocate memory.

awl
On Jun 9, 2011 6:30 AM, "Eduardo Silvestre" <[email protected]> wrote:
> Hello,
>
> every weeks we need restart memcached daemon... I try do flush_all with no
> lucky. Do you know other command to flush ?
>
> nobody 15555 0.1 6.8 586716 564768 ? S Jun06 5:45
> /usr/bin/memcached -m 2048 -p 11211 -u nobody -l 192.168.52.52 -c 64000 -M
>
> stats
> STAT pid 15555
> STAT uptime 219153
> STAT time 1307613237
> STAT version 1.2.2
> STAT pointer_size 64
> STAT rusage_user 151.757484
> STAT rusage_system 338.165134
> STAT curr_items 447844
> STAT total_items 9176979
> STAT bytes 498694125
> STAT curr_connections 6
> STAT total_connections 9658642
> STAT connection_structures 190
> STAT cmd_get 10255192
> STAT cmd_set 9176979
> STAT get_hits 8671302
> STAT get_misses 1583890
> STAT evictions 0
> STAT bytes_read 11289578042
> STAT bytes_written 10440713334
> STAT limit_maxbytes 2147483648
> STAT threads 1
> END
>
> (graph of my memcached attached)
>
> In last version this problem is fixed?
>
> Best Regards,
>
>
>
> On Thu, Jun 9, 2011 at 3:50 AM, PK Hunter <[email protected]> wrote:
>
>> Actually I joined this google group to ask the same thing, and found this
>> thread.
>>
>> I start memcached on a CentOS 64 bit server with 8 GB of RAM, with the
>> following settings:
>>
>> memcached -d -m 96 -n 10 -c 4096 -f 1.05 -l 127.0.0.1 -p 11211
>>
>> Yet, the memcached on my server has just about 2,600 keys, and seeing the
>> actual number of bytes stores including the characters needed to store
keys
>> + their values, it is 632,817. Which I understand is about 0.60 MB,
right?
>>
>>
>> What am I missing?
>>
>> If I manually try to add keys, and I wrote a PHP program using the
memcache
>> library to add 6,000 keys, the keys do NOT get added, and also the
"$status
>> ["evictions"]" remains at 0. So I'm not sure why the server is stopping
at
>> circa 2,600 mark.
>>
>> Any ideas would be much appreciated!
>>
>> These are the stats of my server:
>>
>>
>> Memcache Server version: 1.4.5
>>
>> Process id of this server process 21808
>>
>> Number of seconds this server has been running 200229
>>
>> Accumulated user time for this process 48.654603 seconds
>>
>> Accumulated system time for this process 198.973751 seconds
>>
>> Total number of items stored by this server ever since it started 637981
>>
>> Number of open connections 6
>>
>> Total number of connections opened since the server started running
>> 1505905
>>
>> Number of connection structures allocated by the server 70
>>
>> Cumulative number of retrieval requests 2657551
>>
>> Cumulative number of storage requests 637981
>>
>> Number of keys that have been requested and found present 2507883 (94.4%)
>>
>> Number of items that have been requested and not found 149668(5.6%)
>>
>> Total number of bytes read by this server from network 97.1105 MB
>>
>> Total number of bytes sent by this server to network 3839.72 MB
>>
>> Number of bytes this server is allowed to use for storage. 96 MB
>>
>> Number of valid items removed from cache to free memory for new items. 0
>>
>>
>>
>>

Reply via email to