Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I need to increase the memory size for memcached. I have done this before, but I cannot remember all the steps that I took. If I remember correctly, I downloaded /etc/sysconfig/memcached and changed CACHESIZE=64 to CACHESIZE=1024. However I am not sure if that is how it is supposed to be done.

Anyone that could guide me into how I do this? Also a command that confirms the change would be useful. I am running RedHat x86_64 es5.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

With the memcached rpms, yes, editing the CACHESIZE in /etc/sysconfig/memcached is the correct way to do it.

You'll need to restart memcached if it's already running.

To check that it's changed, do a "ps aux | grep memcached" and look at the memcached arguments for the -m flag. If it matches what you put in the /etc/sysconfig/memcached CACHESIZE variable, you should be good.

share|improve this answer

Your Answer

 
discard

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.