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
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
55 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 ...
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
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
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 ...
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 ...
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
95 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: ...
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 ...
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
1answer
124 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 ...
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 ...
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 ...
-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 ...
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
570 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 ...
1
vote
2answers
315 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 ...
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 ...
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
167 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 ...
0
votes
2answers
1k views

PHP memcached session redundancy

I'm trying to follow How To Share PHP Sessions on Multiple Memcached Servers article and implement that to my environment: /etc/php.d/memcache.ini: # grep -v ^\; /etc/php.d/memcache.ini ...
1
vote
0answers
494 views

PHP Warning: Unknown: Failed to write session data (memcached). Very infrequent

I installed memcached (2.2.0) libmemached (1.0.18) a few weeks ago. (Apache/2.4.10 and PHP 5.5.20), mostly for php session management. Generally I'm really pleased with performance but I notice this ...
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 ...
0
votes
1answer
358 views

Configuring MAXITEMSIZE in memcached in gentoo

Got memcached up and running (emerged net-misc/memcached) but on PHP I'm getting Server 127.0.0.1 (tcp 35817, udp 0) failed with: SERVER_ERROR object too large for cache I'm thus trying to change ...
0
votes
0answers
101 views

Counterintuitive drop in CPU

I am running a memcached service in a linux container pinned to a specific physical core. As expected the CPU increases when the number of requests increase. The requests are sent from a workload ...
2
votes
1answer
61 views

Different server response time for 2 web pages with the same view and template?

I've recently been facing hugely increased server response time for some of my web pages (response time in the range of 10-20 seconds). For example, for the page http://www.edmhunters.com/afrojack/ - ...
0
votes
1answer
453 views

Allow Apache use more memory

I use apache2 behind nginx on 8 core CPU 48GB RAM server. Now my system uses only 3GB of all memory, but there are high load on CPUs. How can I use my free memory instead of CPUs time? I also use ...
1
vote
2answers
656 views

Elasticsearch as memcache replacement

I am looking into replacing memcached with elasticsearch. Basically, I need to reduce my software stack and since I will be using elastic for searching, I was thinking of creating an index that will ...
0
votes
0answers
251 views

Increased 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 ...
2
votes
3answers
580 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 ...
0
votes
1answer
256 views

Is it possible to force a specific program to use virtual memory?

Let say I have 1GB RAM Ubuntu, I need to run both memcached and redis on the same machine The usage of memcached is quite heavy (e.g. 1K read per second) and redis is less heavy (but still 10 read ...
1
vote
0answers
290 views

Having Memcache and Memcached installed and enabled at the same time

Can I use both Memcache and Memcached php extensions on the same server at the same time? Just to be clear so you dont misunderstand what I mean by this question, here is my scenario: I have both ...
-1
votes
1answer
623 views

Installing Memcached on CentOS 6 Issue

Having a devil of a time getting Memecached on my CentOS 6 server (PHP 5.4.13). Usually all of the DigitalOcean help guides work smoothly (it's a MediaTemple server and support won't install ...
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 ...
2
votes
1answer
374 views

Memcached cachesize 512M or 1G for VPS 2G? [closed]

I just started to use memcached on a VPS with 2Go of RAM. I set the cache size at 512 Mb, but I am wondering if I can go for 1024Mb. On the VPS there are: a local business website with very few ...
1
vote
1answer
419 views

PHP - Memcached - Libmemcached - Handle cache server outage

I am working on ensuring our app degrades gracefully in case of a complete cache outage, which is highly unlikely, as we have minimum of at least 3 cache nodes to add to the cache pool, by way of ...
1
vote
1answer
192 views

Nginx memcached_pass directive unknown

I am setting up a new server instance on AWS and have run into something I don't know how to handle. I've set up exactly the same config on digital ocean before and there issue does not occur at all. ...
2
votes
1answer
910 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 ...
4
votes
1answer
4k 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 ...
0
votes
2answers
272 views

Nginx and its caching systems. Are they all the same?

I'm a bit confuse about PageSpeed, Microcaching and Memcached. Are they just different tools that do the same job? I was initially thinking in use PageSpeed with Nginx. If I do that, do I need ...
1
vote
1answer
292 views

memcache and memcached session not persisting

so I am having a problem with sessions persisting in an application, that is using the memcached php driver, while another existing application is using the memcache driver. On the server, I see both ...
0
votes
1answer
111 views

Updating memcached…will the data be flushed?

I know if you restart memcached the data is lost. What about when an update happens? I am not 100% sure even how to do an update, but I think yum will do it automatically and it would be very bad if ...
1
vote
0answers
332 views

What is the right value for memcache.session_redundancy?

The PHP manual for Memcache doesn't have any explanation for the memcache.session_redundancy option. The comment on that page (which is 4 years old) says it sets the number of copies of a session ...
6
votes
2answers
3k 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 ...