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

1
vote
1answer
1k views

Stopping memcached: [FAILED]. Why?

My application seems to be having issues with memcached not stopping. I'm using php, and have specific keys expiring after every hour. However those keys & values are not repopulating anymore. ...
-1
votes
1answer
23 views

why memcached server running slow for my case

I am usiing memcached for html caching for my project but it take too much time to retrieving data and responding. Server stats: 8 GB RAM, centos, php client Here is my setting : echo "stats ...
3
votes
1answer
1k 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 ...
0
votes
2answers
20 views

Centos 6.8 memcached not found

Installed latest version of memcached(1.4.28) with these instructions: wget http://memcached.googlecode.com/files/memcached-1.4.13.tar.gz tar -xzf memcached-1.4.13.tar.gz cd memcached-1.4.13 ./...
0
votes
1answer
3k views

PHP-FPM save sessions in memcached

I'm trying to switch my session_handler to memcached, I'm not sure if it worked, it does not look like it did. vi /etc/php5/fpm/php.ini session.save_handler = memcached session.save_path = unix://...
0
votes
2answers
1k views

How to find max connections used by memcached?

In our LAMP application we have increased the max connection value for memcached to very high to avoid error for max connection we were having. Now we want to set appropriate value to max connections ...
0
votes
1answer
1k views

memcached install issues with lib event on server

I've installed libevent on my server in the directory root/data/ and have i'm about to install memcached with ./configure –with-lib-event=/data/; make; make install However, after running a bit I ...
6
votes
6answers
8k 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 ...
-1
votes
1answer
79 views

Memcached server with multiple webservers

I'm struggling for days now, I'm setting up my cloud infrastructure: 1 nginx Loadbalancer 2 Centos Webservers 1 Centos Memcached server On the webservers I've installed the php-pecl-memcached ...
0
votes
1answer
38 views

Different Local Values and Master Values for PHP Session settings

I have configured PHP 5.4.16 (cli) (built: Jun 23 2015 21:17:27) on Centos7.0 to use memcached for session handling. [Session] ; Handler used to store/retrieve data. ; http://php.net/session.save-...
8
votes
4answers
7k 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 ...
16
votes
5answers
15k 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.
0
votes
1answer
231 views

How to install “memcached” to php 5.6?

I had installed PHP 5.6.20 from this source. https://webtatic.com/packages/php56/ But I cannot install memcached. Just only memcache. How to install memcached to PHP 5.6? This is what i tried. [...
0
votes
2answers
44 views

SSH Tunnel to Memcached not working

I have created a SSH Tunnel to my memcached server as follows: ssh -f -N user@56.55.55.56 -L 11211:127.0.0.1:11211 When i do netstat on my machine i get the following: So far looks good. tcp ...
31
votes
5answers
66k 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|...
1
vote
1answer
38 views

Is there a memcached memory limit best practice?

Is there a best practice or general rule of thumb when setting the memory limit for memcached? I'm currently running memcached with the default memory limit of 64 megabytes. The server has 8 ...
26
votes
2answers
72k 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 ...
1
vote
1answer
771 views

Response headers in Memcached+Nginx

Is there any way to cache response headers along with the response body in Memcached for use with Nginx?
7
votes
1answer
11k 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 ...
0
votes
1answer
113 views

Troubleshooting with php7 and memcached

I want to install memcached with php7, so I downloaded the actual php7.0-memcached package from the dotdeb repository. But it doesn't work: I get following error in the nginx error files when I want ...
0
votes
0answers
35 views

Scaling and HA LEMP coming from a single server setup

here is the current configuration 1 Server: nginx php-fpm memcached mariadb 10 The project is growing fast and in the midterm we need to scale. When I have to setup multiple machines I want to ...
0
votes
1answer
252 views

HHVM Not Using memcached as Save Handler?

I'm using HHVM to serve up my PHP content, and have a memcached instance setup with a view to using it as a save handler for sessions, however I'm not sure that HHVM is actually using it. Here's the ...
0
votes
1answer
33 views

How to allocate memory to memcached?

I need to allocate memory to memcached. I executed following command sudo find / -name memcached.conf and it returned a single file located at /opt/bitnami/common/etc/memcached.conf and it ...
0
votes
0answers
217 views

Error “Could not read long value, too big with” Memcached

My website has 3 servers, 2 in these servers is webservice and 1 server i'm using for store object to memcached. 2 webservers are using remote connection to reading and writing data from memcached ...
5
votes
6answers
9k 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/...
0
votes
0answers
30 views

memcached is not starting

I am trying to start Memcached through SSH. I know that it was installed correctly as it was working yesterday. I am doing "sudo service memcached status" I get " * memcached is not running" Then I ...
1
vote
2answers
112 views

need recent version of libmemcached on aws ec2

The yum repo available on aws ec2 instances only has an old version of libmemcached: v 1.0.8. Can anyone tell me how to get a more recent version, like 1.0.18, installed on an aws ec2 instance? ...
0
votes
0answers
52 views

PHP Webserver Not Sharing Sessions With Memached

Background & Question I'm trying to set up a load balanced structure to host PHP applications in Azure. To accommodate session sharing among web servers, I am trying to set up memcached as a ...
1
vote
1answer
80 views

Why isn't memcached using its available memory?

Our memcached.conf has the following directive: -m 7168 And the server has 8GB of RAM. However, despite heavy use, memory usage never goes above 2GB: # free total used ...
1
vote
0answers
59 views

How to setup a security group on AWS that allows incoming traffic only by certain Elastic Beanstalk servers?

we have the following setting on AWS: 8 Elastic Beanstalk environments (4 QA, 4 PROD) read and write data. Typically, 1 environment (the API) always reads data from DynamoDB and RDS and 1 environment (...
2
votes
3answers
2k views

Memcached - doesn't seem to be working

my local.xml <session_save><![CDATA[files]]></session_save> <cache> <backend>memcached</backend> <prefix>MAGE_</prefix> <memcached> <...
7
votes
3answers
3k 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 ...
11
votes
3answers
40k 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 ...
0
votes
4answers
654 views

Is it possible to run multiple instances of the same application with a single memcached server?

I have two applications with exactly the same code using memcached in identical ways. Does memcached tell the difference between the two apps, and is it safe to run them on the same server with a ...
0
votes
0answers
419 views

Connecting EC2 php sessions to elasticache

I m setting up a cloud infrastructure. I have configured my beanstalk application with a loadbalancer and two ec2 instances, which i can access fine. I have then created an elasticache cluster with ...
38
votes
5answers
33k 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 ...
1
vote
1answer
231 views

Memcached in Munin

I tried to configure the munin to load the memcached plugin. But the memcached plugin wont show up when I add the --suggest to the munin-node-configure command. But I appear when I do not add that ...
0
votes
0answers
56 views

build memcached source on centos6.4 64bit fails

I'd like to build memcached from source on centos 6.4 x86_64 but only get following error. checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu ...
-1
votes
1answer
690 views

“Memcache can't connect, connection refused (111)”? [closed]

First of all... I must say, I don't know much about servers. I'm the kind of php developer that don't use command lines very often. I'm very uncomfortable in the Terminal. However, I'm learning. I'm ...
0
votes
0answers
145 views

session.save_handler memcached cluster/failover

I found the following article about clustering memcached; but it uses the memcache php extension and I am using memcacheD extension. Here is the article: https://www.digitalocean.com/community/...
2
votes
1answer
5k 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 ...
0
votes
1answer
100 views

Why memcached takes much more memory than specified in its configuration

I have set Item Size to 128M and Maximum Memory to 1024M in my memcached configuration. But when I run this command: ps -eo pmem,pcpu,vsize,pid,cmd | sort -k 1 -nr | head -5 I get 71.7 0.0 ...
0
votes
0answers
29 views

How to decide on which server to install memcached?

I have two separate servers: Server A is a nginx web server Server B is a MySQL server Both servers are on a private network. How do I decide where to install memcached? What factors should be ...
3
votes
4answers
16k 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="...
2
votes
4answers
2k views

Memcached status returning “memcached dead but pid file exists”

When I want to see the status of memcached I run service --status-all but I get this multiple times "memcached dead but pid file exists" when it lists memcached. It seems to me that this means ...
2
votes
0answers
174 views

How to specify the timeout for health check in memcached session manager for tomcat

Basically the setup consists of two tomcat6 and two memcached nodes. memcached session manager version - 1.8.3 (latest release). I'm testing the following scenario: Client logs in into the ...
1
vote
2answers
209 views

memcached append() php ubuntu - bad protocol

I am running ubuntu gutsy(7.1) , php5 and I am trying to get memcached running locally. I installed everything as per the docs: memcached daemon, php PECL extension, libevent, etc. But now I can ...
0
votes
1answer
296 views

APC Extension unable to load dynamic library /usr/lib/php5/20090626/apcu.so

I have installed using this Tutorial https://www.23systems.net/2009/07/installing-alterative-php-cache-apc-with-plesk-on-ubuntu/ and all is running fine. Even APC is caching everything and apc.php ...
7
votes
3answers
14k 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, Form what I'v read, I know that I need to create a memcache.socket and add -...
2
votes
3answers
716 views

Sudden increase in CPU usage and server response time

Over the past 10 days, I'm suddenly experiencing increased CPU usage on my website with CPU usage reaching 100% three times. During that time I'm unable to SSH to my website so I haven't been able to ...