I am currently on a Xeon 7550 server running Redhat x86_64 es5 with 32gb RAM. I have memcache installed and the only step remaining in the configuration is to set how much memory it uses. I had done this on my old server, where I downloaded a file on through Filezilla (root access) and edited it. Now, I cant remember which file I edited and exactly how the process went. I want to set the memery to use 1 GB.
Anyone with some insight? Please be thorough if you will assist, as my linux server knowledge is limited.
I use Ubuntu, and Debian mostly, so this answer is based on those, but I suspect the answer for other distros is largely the same.
In
/etc/memcached.conf
-- If it's not in exactly the same place, a) I'd be surprised, and b) you could find it withlocate
So all you need do, is change the -m 64 line to
Or similarly large value in Megabytes.
There's some other yummy tuning parameters in there, such as the user it runs as, and what to do when it runs out of memory, and the IP address to bind the daemon to.. Have a look for yourself.
Settings are maintained here..
Change
Type the following command:
For some distro it's location at /etc/init.d/ with the file name memcached
Change