Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 673
  • Last Modified:

Change Memcache Allocated Cache Size

How do I adjust the default cache size for memcached? Right now it set to the default 64Mb
0
72impala
Asked:
72impala
  • 2
1 Solution
 
farzanjCommented:
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
 
torimarCommented:
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
 
72impalaAuthor Commented:
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
 
torimarCommented:
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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now