Solved

Change Memcache Allocated Cache Size

Posted on 2010-11-23
4
661 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Error installing extension Linux 4 59
Remove a folder in Linux 9 91
DNS @ Naked Domain Record 5 68
Linux/Apache File Ownership/Permissions 1 53
One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

920 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now