Solved

Change Memcache Allocated Cache Size

Posted on 2010-11-23
4
667 Views
Last Modified: 2012-05-10
How do I adjust the default cache size for memcached? Right now it set to the default 64Mb
0
Comment
Question by:72impala
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 31

Expert Comment

by:farzanj
ID: 34196309
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

0
 
LVL 35

Expert Comment

by:torimar
ID: 34196324
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.
0
 

Author Comment

by:72impala
ID: 34196476
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
0
 
LVL 35

Accepted Solution

by:
torimar earned 250 total points
ID: 34196560
You may have to first stop the memcached instance already running / kill the process, then run the command.

(I can't open your link, it's password protected)
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question