Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects). It is commonly used as a cache to speed access to frequently used data.

learn more… | top users | synonyms

21
votes
5answers
22k views

Can a pool of memcache daemons be used to share sessions more efficiently?

We are moving from a 1 webserver setup to a two webserver setup and I need to start sharing PHP sessions between the two load balanced machines. We already have memcached installed (and started) and ...
55
votes
10answers
43k views

memcache vs memcached?

I want to use memcached http://www.danga.com/memcached/ I have installed it through yum install memcached But now I need to connect to PHP, and there is an extension named memcache and one named ...
4
votes
3answers
3k views

Yum install php-pecl-memcached - No package found (Have epel-release-6-8.noarch.rpm)

I believed I've downloaded and updated the EPEL rpm but I can't install php-pecl-memcached.. I'm very new to this, any help is appreciated. #rpm -Uvh epel-release-6-8.noarch.rpm warning: ...
10
votes
1answer
37k views

What does “<service_name> dead but subsys locked” mean?

I'm trying to run memcached on a centos box and it runs for a while, but then ends up in this state: memcached dead but subsys locked netstat shows this: tcp 0 0 :::11211 ...
3
votes
1answer
387 views

Memcached - one large instance vs many smaller

I will be adding a memcached server to my web app to offload lots of db requests. I'll be mostly caching different small id-name pairs (memberid-membername, blogid-blogname, etc) and expect total ...
6
votes
1answer
1k views

Having problems with maintaining sessions across multiple Amazon EC2 instances

One of my sites is hosted via Amazon EC2 service. The problem starts happening when the site faces a heavy load which in turn spawns a new EC2 instance via AutoScaling. This is good but the issue is ...
30
votes
5answers
22k views

Which PHP (opcode) cache one should use and why?

I keep hearing about some PHP (opcode) caches like - APC, XCache, Memcache, eAccelerator, etc. But I couldn't ever figure out how to go about choosing one. Apart from performance benefit, which a ...
13
votes
3answers
17k views

How to increase the amount of memory memcache uses?

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 ...
6
votes
2answers
19k views

Memcache basic configuration

I have installed memcache for a Drupal site with the memcached pecl extension. It's all running fine but I'm still struggling with the configuration settings. For instance , following advice on ...
5
votes
3answers
7k views

Multiple Memcached server /etc/init.d startup script that works?

I install memcached server via source and can get standard start up script installed for 1 memcached server instance, but trying several scripts via google, can't find one that works to manager auto ...
1
vote
3answers
1k views

What would cause Memcached to Hang for 2+ seconds?

I'm going nuts trying to scale memcached. From their site: Memcached operations are almost all O(1). Connecting to it and issuing a get or stat command should never lag. If connecting lags, you ...
5
votes
1answer
6k views

How is memcache distributed?

I've got memcache running on 5 web servers all of which are on the host list in php and which are load balanced on the front end. So since memcached is supposed to be distributed the php client will ...
2
votes
2answers
2k views

Installing memcached in Ubuntu server 9.04

I just installed Linux Ubuntu on a virtual machine and need to install memcached on it. I tried apt-get install memcached but it installs version 1.2.2 (from local repository), which is old. I ...
-1
votes
2answers
2k views

Uninstall all instances of memcached

My host asked me to: " You will need to remove all instances of memcached that you have installed. " How would i go about doing this? I am on CentOS
3
votes
1answer
810 views

Does a growing number of TIME_WAIT connections affect server performance?

I have 2 servers, both running RHEL 6, one for Apache 2.2 and one for memcached (memcached-1.4.4-3). I noticed an increase in the number of TIME_WAIT connections on the Apache server netstat -n | ...
1
vote
3answers
2k views

Setting up memcached/memcache with Php on Ubuntu 10.10

I'm assuming memcache and memcached are two completely different things, and that I want to use memcached. I have two separate servers (one is a webserver, one is meant for the db). I don't know ...
0
votes
1answer
339 views

Memcached failing to get data (nuked by expire)

currently I have three different running memcached instances, each one for an environment (dev, test and live) All three environments are running the same memcached version (1.4.5) and configurations ...
-1
votes
1answer
685 views

Forward localhost memcached server on port 12111 to domain.com memcached server

My customers are running many scripts that uses memcached, but all of them are using localhost as a address. My localhost server is now out of RAM, because it's doing many other things like WWW and ...