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

0
votes
0answers
8 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
2k 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 = ...
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 ...
0
votes
1answer
63 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
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
16 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
54 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 ...
4
votes
6answers
8k 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' ...
0
votes
0answers
24 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
48 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
22 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
56 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
29 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
2k 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 ...
1
vote
1answer
940 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. ...
7
votes
3answers
33k 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
564 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
210 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 ...
6
votes
5answers
7k 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 ...
37
votes
5answers
31k 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
122 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
33 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 ...
0
votes
1answer
232 views

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

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
94 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: ...
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
69 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
27 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 ...
1
vote
4answers
14k 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: ...
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 ...
0
votes
0answers
129 views

Reload memcached config without restarting or losing cache

I've changed (increased) the -m value in /etc/memcached.conf and I'd like memcached to refresh the configuration file to use the new settings, but I don't want to lose the rather large, existing cache ...
1
vote
0answers
103 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
208 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
132 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 ...
6
votes
3answers
12k 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
579 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 ...
1
vote
2answers
314 views

Memcached vs Amazon Elasticache with PHP on CentOS 7

I setup a new CentOS 7 server in Vagrant to run PHP, nginx, MySQL (MariaDB) and memcached (note the d on the end). I can get memcached to run fine, but I can't get the Amazon Elasticache .so file to ...
-1
votes
1answer
33 views

NGINX + memcached, location not found

I want to configure nginx to read directly from memcached by key "match_1" for example. This is my server configuration server { listen 8080; server_name localhost; location /get_match ...
4
votes
3answers
5k 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: ...
0
votes
1answer
405 views

Install memcached PHP extension on openSUSE 13.2

Is there a standard/supported way to get the memcached extension for PHP installed on openSUSE 13.2? On CentOS this was a case of yum -y install php-pecl-memcached. But it doesn't look like the ...
0
votes
1answer
567 views

Problems installing PECL extension Memcache

I have installed memcached fine and seems working properly , and now I will need to install PECL extension memcache. Im running Centos 6.2 x86_64 .When I try to install gives me this error at the ...
7
votes
3answers
6k 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 ...
0
votes
1answer
88 views

Should memcached be installed before or after cpanel? [closed]

I want to install memcached. I want to know if I should install cpanel first, or after the memcached installation
0
votes
0answers
40 views

Memcached removes data too early when -M option not specified

We are using memcached as a storage for php sessions and almost from the beginning noticed that sessions disappears too early (say, in 20-30 minutes instead of 3 hours as speicified in php memcached ...
3
votes
2answers
5k 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 ...
12
votes
5answers
12k 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
122 views

Memcached no get_hits

I have a problem with memcached on Centos 6 with apache on port 8080 and Nginx on port 80 as reverse proxy for apache. I install Memcached to cache all static file : Here is my memcached configuration ...
1
vote
1answer
77 views

Uneven load distribution on an elasticache cluster

Amazon elasticache cluster looks to be a really good choice for auto-scaling but it seems the load distribution is not equal among the nodes. Both memory and CPU wise the node 1 seems to take almost ...
1
vote
1answer
86 views

Memcached Pool - Outtage causes increased lag in response time

I have multiple cache servers which are added to a virtual pool at the PHP layer via the Memcached::addServers() api. During fault tolerance testing I noticed that taking one of the memcached servers ...
1
vote
1answer
165 views

Why is Memcache not starting automatically?

I installed memcache in my CentOS server, and the respective libraries for php as well: Despite having installed both of them, I ended using Memcache $memcache = new Memcache; Since I wanted the ...