Link to home
Start Free TrialLog in
Avatar of 72impala
72impala

asked on

Change Memcache Allocated Cache Size

How do I adjust the default cache size for memcached? Right now it set to the default 64Mb
Avatar of farzanj
farzanj
Flag of Canada image

Here is the man page memcached.  Command used is shown below.

memcached -m <Memsize in MB>


http://linux.die.net/man/1/memcached
memcached -m <Memsize>

Open in new window

It seems you need to allocate the cache size via a command switch "-m" in the command that starts the memcached service.

A typical command for twice the amount of cache (128 mb) would be:

/usr/bin/memcached -d -m 128 -u root

Set the "128" to the size of cache you require.
Avatar of 72impala
72impala

ASKER

Ok, I ran this command /usr/local/bin/memcached -d -m 128 -u root but when I check it still says 64MB

http://freebootlegmovies.net/memcache.php?&op=1
ASKER CERTIFIED SOLUTION
Avatar of torimar
torimar
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial