Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using Memcached on RHEL/CentOS 5/6 and found that memory size inconsistency between limit_maxbytes and maxbytes taken from "stats" and "stats settings" respectively.

I have compiled memcached-1.4.15 from the source and set the limit_maxbytes value to 5GB but maxbytes shows only 904MB.

# ./memcached -l -p 11211 -m 5000 -u nobody -vv

# echo "stats " | nc 11211 | grep limit_maxbytes
STAT limit_maxbytes 5242880000

# echo "stats settings" | nc 11211 | grep maxbytes
STAT maxbytes 947912704

Eviction happens when it hits the maxbytes value and do not grow. Any reason for this behavior..?

# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.4 (Santiago)

# uname -rop
2.6.32-358.14.1.el6.x86_64 x86_64 GNU/Linux

# file memcached
memcached: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked    (uses shared libs), for GNU/Linux 2.6.18, not stripped

I have 48GB installed on this box. Note that I have used binary packages as well but it is still the same.

share|improve this question

On my Memcached box it works fine (1.4.5-1), but I think this is related to this bug:

share|improve this answer
I tried memcached-1.4.5-1.el5.x86_64.rpm as I can't find the tar.gz but still the same. This is Redhat v6/64bit box. – Hirantha Aug 30 '13 at 2:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.