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.
390
questions
76
votes
9
answers
72k
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 ...
57
votes
8
answers
153k
views
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|...
45
votes
7
answers
64k
views
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.
43
votes
6
answers
38k
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 ...
41
votes
1
answer
142k
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 ...
32
votes
3
answers
75k
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 ...
25
votes
5
answers
32k
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 ...
24
votes
5
answers
45k
views
Memcached memory usage
Is there any command line or php script which returns the memcached total memory usage?
18
votes
3
answers
9k
views
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 ...
17
votes
2
answers
17k
views
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 ...
17
votes
1
answer
64k
views
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 ...
16
votes
3
answers
110k
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 ...
16
votes
5
answers
32k
views
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:
...
14
votes
1
answer
19k
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 ...
14
votes
4
answers
5k
views
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 ...
12
votes
5
answers
26k
views
Netcat (nc) traditional package for RHEL 6.x?
I'm trying to use the Percona Apache Monitoring [Cacti] Template for Memcached.
They do indeed warn that you can't use the openbsd version of the package and provide a solution for Ubuntu/Debian ...
9
votes
2
answers
15k
views
Memcached listen on selected interfaces
I am setting up Memcached on a Debian server that has two interfaces - eth0 (public) and eth1 (private).
I want Memcached to listen on both eth1 and lo (loopback) so that it can be accessed even if ...
9
votes
4
answers
24k
views
How to debug memcached "SERVER HAS FAILED AND IS DISABLED UNTIL TIMED RETRY" errors?
I have a two server memcached setup. When memcached write fails, I receive an email notification. About once per day "SERVER HAS FAILED AND IS DISABLED UNTIL TIMED RETRY" error comes and I have no ...
9
votes
8
answers
33k
views
Unable to load memcache.so extension
I built PHP from source with configure command
'./configure' '--prefix=/usr/local/php-5.2.8' '--with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d' '--with-apxs2=/usr/local/httpd/bin/...
8
votes
3
answers
4k
views
Troubles with memcache.so
I've been asked to launch a site that someone else built. It is a Wordpress shop site that needs Memcached to run, and I've been having troubles getting Memcached and the memcache php plugin working ...
7
votes
5
answers
34k
views
How to specify the log file for memcached on RHEL / CentOS
I'm running memcached 1.4.5 on RHEL5.5. I installed this using yum which has installed the standard memcached script in /etc/init.d and the configuration file in /etc/sysconfig/memcached:
PORT="...
7
votes
1
answer
3k
views
How do I monitor memcached evictions?
How do I monitor memcached to know if / how many evictions are occurring, and how much memory is used/free.
7
votes
1
answer
3k
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 ...
6
votes
3
answers
14k
views
How to setup Memcached/APC on Ubuntu Server 10.04 for PHP?
I will be soon setting up Simple Machines forum on a fresh Ubuntu Server 10.04 VPS. The forum software is written in PHP. I will using Nginx as the web server, and I will be following a guide to ...
6
votes
5
answers
4k
views
Recommended way to pre-warm memcached?
I am currently testing memcached on a system that will be rebooted once a week, and would therefore like to pre-warm memcached after the reboot.
Wondering if anyone has a sample script they have ...
6
votes
7
answers
22k
views
Slow Memcached: Average 10ms memcached `get`
We're using Newrelic to measure our Python/Django application performance. Newrelic is reporting that across our system "Memcached" is taking an average of 12ms to respond to commands.
Drilling down ...
6
votes
3
answers
10k
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 ...
6
votes
1
answer
5k
views
Memcached keeps increasing cpu ussage
I'm running a memcached server which is serving two front end servers. These are connecting to the memcached server from Apache2/PHP using the standard PECL library.
For some reason the memcached on ...
6
votes
1
answer
2k
views
PHP Session Storage in Fault Tolerant Memcached Pool
I recently had the opportunity to move a web application from using a Nginx proxy "loadbalancer" to an F5 loadbalancer. Unfortunately during that migration it became clear that the memcached session ...
6
votes
3
answers
651
views
Memcached Lagging
Let me preface this by saying that this is a followup question to this topic.
That was "solved" by switching from Solaris (SmartOS) to Ubuntu for the memcached server. Now we've multiplied load by ...
5
votes
3
answers
13k
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: epel-release-...
5
votes
2
answers
51k
views
Connecting to memcached "which port should use?" (php)
I've installed memcached perfectly and I have created a new instance but i don't understand if I'm connecting to the right port... I always get a false return from get(key)
Here is my code:
$...
5
votes
1
answer
2k
views
How is distributed memcached supposed to increase performance if it's making network calls?
http://memcached.org/about
Greetings all, I love memcached but have thus far only used it in single machine setups as a local cache. I have read extensively about memcached's distributed nature and ...
5
votes
1
answer
13k
views
nginx with Memcache Vs Varnish
I was wondering if anyone has any comments / benchmarks / suggestions on Varnish Vs Memcache when used to serve content (usually 2-5kb JS file depending on the parameters in request; thousands of diff ...
5
votes
6
answers
5k
views
Dividing memcached between sites?
If I end up having 4 or 5 medium sites on one server, I want to be sure that each one that requires memcached has at least an allotted space. Is there a simple way to do this? The only ways that come ...
5
votes
4
answers
6k
views
Nginx & PHP caching: fastcgi_cache, proxy_cache, APC or memcached or combo?
We have webservers running nginx 7.65 along with fastcgi PHP5 and are looking into caching possibilities to speed up content delivery and lower system loads. The servers run different (custom) ...
5
votes
2
answers
3k
views
Are there any drawbacks to running memcached on a Unix domain socket instead of the network (assuming one server)?
I’m setting up a Django website to use memcached to cache its pages.
(The content of each page won’t change very often at all, so I’m hoping that most of the site will be served from memcached most ...
5
votes
2
answers
7k
views
error while installing the libmemcached
I get this while installing libmemcached
root@server [/libmemcached]# make
make all-am
make[1]: Entering directory `/libmemcached'
if /bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -...
5
votes
2
answers
1k
views
Memcached scaling strategy
Currently I am running a production environment with 4 dedicated memcached servers, each of them having 48Gb of RAM (42 dedicated to memcache). Right now they are doing fine, but traffic and content ...
5
votes
3
answers
1k
views
Memcached - one big server vs several smaller ones
I am considering whether we should get one big (48 Gb RAM) server or buy 4 smaller (12Gb RAM) servers for running memcached service. In either case I would also have stand-by spares for redundancy, ...
4
votes
2
answers
4k
views
memcached support requires libmemcached
We've configured a Dockerfile containing the following code snippet:
ENV MEMCACHE_VERSION=8.0 \
MEMCACHED_VERSION=3.2.0
############## END ENVIRONMENT VARIABLES ###############
###################...
4
votes
2
answers
1k
views
Can I use apache2 and memcache in same server?
I am really new to server development. I have a server (Server version: Apache/2.4.41 (Ubuntu)) for Django and it's running on apache2. I want to use Memcache for a large queryset. I just wanna use ...
4
votes
1
answer
5k
views
Confused about caching solution: MemCache, Varnished, mod_cache, else?
I have a very heavy site in my server. The load of the server is always about 30-50 and sometimes it become even 150 and server work really hard. I'm looking for a caching solution that can increase ...
4
votes
1
answer
9k
views
How to secure memcached?
In Debian, I have installed memcached (using this guide) to lower the otherwise unmanageable load on mysql database. The database is on a separate server, and memcached and Varnish are on the front ...
4
votes
3
answers
9k
views
Memcached and php error
I have install memcached and when I try a script test like this one :
$memcache = new Memcache;
$memcache->connect('127.0.0.1', 11211);
echo $memcache->getVersion();
I recive the nest error :
...
4
votes
2
answers
2k
views
Does Memcached support IPv6
Has anyone used Memcached with IPv6? Can you provide any configuration tips, gotchas, or mention any stability issues you've had?
4
votes
2
answers
7k
views
How to replicate Memcache data among servers
A same question in SO can be found from here . But since I couldn't find any suitable answer, I am asking with additional info.
I have many memcache clients but all of them access one memcache server ...
4
votes
5
answers
28k
views
Memcached problems "failed to listen on TCP port 11211"
I just installed memcached on my Mac OS X 10.6.8. It installed perfectly and when I type in memcached in Terminal I get this:
failed to listen on TCP port 11211 tcp
listen: Address already in use
...
4
votes
1
answer
3k
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 | ...
4
votes
1
answer
4k
views
Memcached cache doesn't flush
I would like to flush the memcached cache keys and values on my centos server.
I have tried the telnet approach by telnetting to the port and then issuing: flush_all
It doesn't work an my values are ...