Questions tagged [memcached]

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.

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.

383 questions
76
votes
9 answers

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 memcached?…
thanksyo
  • 839
  • 2
  • 8
  • 8
56
votes
8 answers

how to restart/clear memcache without restarting the whole web server?

/opt/eduserver/eduserver gives me options: Usage: /opt/eduserver/eduserver {start|stop|startphp|startwww|startooo|stopphp|stopwww|stopooo|restartphp|restartwww|restartooo|status|restart|reload|force-reload} where memcache is php module there is…
Radek
  • 1,133
  • 4
  • 26
  • 38
43
votes
6 answers

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 caching system is supposed to deliver, which other…
rahul286
  • 1,647
  • 4
  • 20
  • 25
42
votes
7 answers

View content of memcached

Are there any tools to explore what is currently cached inside a memcached pool? Not some much graphs, but the actual key/values currently stored.
Tom
  • 736
  • 2
  • 9
  • 23
41
votes
1 answer

What does " 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 :::* LISTEN udp …
Nick Brosnahan
  • 513
  • 1
  • 6
  • 7
32
votes
3 answers

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 this on my old server, where I downloaded a file…
Peter Johansson
  • 377
  • 1
  • 6
  • 8
25
votes
5 answers

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 so I was pleasantly surprized that I could…
Tom
  • 4,157
  • 11
  • 41
  • 52
22
votes
5 answers

Memcached memory usage

Is there any command line or php script which returns the memcached total memory usage?
Maximus
  • 335
  • 1
  • 3
  • 7
18
votes
3 answers

Unexpected(?) high 'wasted' memory in memcached

Updated, see bottom of the longish (sorry) question. Looking at our memcached stats I think I have found an issue I was not aware of before. It seems that we have a strangely high amount of wasted space. I checked with phpmemcacheadmin for a change,…
Nanne
  • 602
  • 2
  • 8
  • 26
17
votes
1 answer

Failed to connect to memcache host !

I'm totally new to memcached ! I sucessfully Installed and started memcached with this command in my host A (Ip 192.168.1.102) memcached -u memcached -d -m 30 -l 127.0.0.1 -p 11211 I also add these entry to iptables -A INPUT -m state --state NEW…
billyduc
  • 1,607
  • 7
  • 24
  • 26
17
votes
2 answers

Add vs Set in Memcached

I don't understand the difference between ADD and SET Any clues? It seems as if ADD includes SET or that ADD returns false if something is there and SET just overwrites. Thanks! EDIT: My specific question is, "When do you use add rather than set…
user851171
  • 223
  • 2
  • 3
  • 5
14
votes
5 answers

How to set up memcached to use unix socket?

While I could use memcached on Debian to use the default 11211 port, but I've had great difficulty setting up Unix socket. From what I've read, I know that I need to create a memcache.socket and add: -s /path/to/memcache.socket -a 0766 To…
alfish
  • 3,027
  • 15
  • 45
  • 68
14
votes
3 answers

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 drupal.org You should probably lock down the memcache…
PatrickS
  • 340
  • 1
  • 3
  • 12
14
votes
4 answers

How well do nginx and memcached work together?

We have a Java EE-based web application running on a Glassfish app server cluster. The incoming traffic will mainly be RESTful requests for XML-based representations of our application resources, but perhaps 5% of the traffic might be for JSON- or…
Jim Ferrans
  • 243
  • 2
  • 7
14
votes
1 answer

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 decide which node to write key/value pairs to and…
Mike
  • 143
  • 1
  • 1
  • 5
1
2 3
25 26