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
1answer
1k 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
0answers
41 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
0answers
43 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
783 views

Installing memcached deamon on Centos PHP conflicts

I have Centos 5.10 installed on my server and tried running the following command yum install php53u-pecl-memcached.x86_64 Setting up Install Process Resolving Dependencies --> Running transaction ...
0
votes
1answer
2k views

How much memory can I safely assign to memcached?

I'm looking into using memcached on our server. We've just upgraded and now have a fairly powerful box: DELL PowerEdge R710 Linux RHEL 5 - 64bit 12GB RAM (We used to be on a 32bit 4GB box). The ...
0
votes
1answer
28 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 ...
0
votes
4answers
384 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 ...
6
votes
2answers
3k 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
960 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 ...
1
vote
0answers
32 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
65 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 ...
2
votes
3answers
851 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
28 views

X2Engine doesn't install because it thinks session.save_path (unix:/tmp/memcached.sock) is not writable

I'm installing X2Engine and I get the following error on the install page: The path defined in session.save_path (unix:/tmp/memcached.sock) is not writable. # ll /tmp/memcached.sock srw-rw-rw- 1 ...
1
vote
0answers
19 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 ...
0
votes
2answers
2k views

repcached didn't work when replicate with 2 servers?

I have compiled the memcached-repcached with --enable-replication option, and started it like below: on the server 1: # /usr/local/memcached/bin/memcached -v -d -u memcached -l 192.168.7.106 -p ...
2
votes
1answer
77 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
votes
1answer
654 views

Forward localhost memcached server on port 12111 to domain.com memcached server

My customers are running many scripts that uses memcached, but all of them are using localhost as a address. My localhost server is now out of RAM, because it's doing many other things like WWW and ...
1
vote
1answer
101 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 ...
0
votes
1answer
59 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
132 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
0answers
109 views

CouchBase Client Fails to Cache Object less than 20mb. Time Out Error

I am caching my serialized POJO s(4mb-8mb size objects) concurrently into Couchbase server with CouchBase client (couchbase-client-1.4.3). for(upto 20 itertarions){ new Thread().start().. ...
1
vote
1answer
84 views

PHP sessions in memcache - secure session path

Memcached is fine for sessions as I read. But what safe? Today we have more clients on one server. Every virtual host have own session.path. This is safe to prevent read sessions from other domain. ...
1
vote
1answer
74 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 ...
2
votes
1answer
416 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 ...
-1
votes
2answers
72 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 ...
0
votes
2answers
708 views

Apache Server with memcache, varnish and php slow request times

My issue is that these servers are taking rather long for request about 2 seconds on average just to serve files. When we had just one server doing everything it was noticeably faster even with the ...
0
votes
0answers
111 views

Memcached problems since upgrade from Ubuntu 12.04 to 14.04

I recently migrated to Ubuntu 14.04 with a Webprojekt (nginx,PHP5,MariaDB,memcached). All configs are exactly the same. But the cached sites sometimes don't load properly. I enabled the verbose mode ...
4
votes
2answers
468 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 ...
0
votes
1answer
56 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
170 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 ...
13
votes
4answers
4k 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 ...
0
votes
1answer
306 views

Installing ElastiCache Cluster Client on PHP AWS Elastic Beanstalk (without creating resource)

Elastic Beanstalk does not, by default, install the ElastiCache Cluster Client PHP module. This is needed to connect to an ElastiCache node cluster. Reading around, most of the instructions relate to ...
0
votes
0answers
75 views

cannot setup memcached with sasl

I was following http://www.shanison.com/2014/04/29/setup-memcached-with-sasl-authentication/ with memcached SASL setup. I did not install memcached from source because -S worked without any error. I ...
1
vote
1answer
126 views

memcached works differently on two servers

I have a dev and a testing environment that (ostensibly) are set up the same, but code that works on the dev server doesn't work on the test server. I've narrowed it down to memcached. The dev ...
0
votes
1answer
74 views

memcached number of threads showing more than what were set

I started memcached server using 8 threads. Then I checked threads using ps -eLf | grep memcached shantanu 2758 1 2758 0 10 11:17 ? 00:00:00 memcached -d -l 10.90.15.104 -p 11311 -t 8 ...
0
votes
1answer
31 views

Memcached: More items than connections?

I setup memcached for saving (serialized) PHP sessions. So everytime someone visits my site (1-n connections), a session (1 item) gets created. I don't use memcached for anything else yet. Question: ...
2
votes
1answer
127 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 ...
1
vote
1answer
615 views

Caching (memcache/redis) and multiple servers - best strategy

We're considering best strategy for using cache (memcache or redis based) in our application (Symfony2). It will be deployed on multiple (so far 3) separate machines with load balancing and separate ...
0
votes
0answers
143 views

Using memcached in php.ini is ignoring gc_maxlifetime?

Using php-fastcgi with session.save_handler = memcached and session.gc_maxlifetime = 1440, my sessions are never expiring. Memcached Cache is running full and then starting to evict old items after a ...
0
votes
1answer
88 views

Memcached Service Crashed Every Morning

I have Memcached 1.4.17 Install on CentOS server to serve a PHP website. The problem is every morning the Memcached Service will be crashed. Any suggestions?
3
votes
1answer
187 views

Save PHP opcache to Memcached

Running on small servers it would make sense offloading these as much as possible for performance. Also offloading will prevent from the server becoming a bottleneck. Therefore I use memcached for ...
1
vote
1answer
1k views

upstream prematurely closed connection while reading response header from upstream, client

I'm using nginx and spawnf-cgi with apc and memcache enabled.I'm getting 502 bad gate way on browser and this error on error log. 2013/01/07 06:55:46 [error] 90799#0: *53 upstream prematurely closed ...
0
votes
0answers
179 views

Adding Memcached (to WordPress) causes PHP (Apache, mod_fcgid) to hang

Quick architecture overview: Nginx serves up static assets and is running as a reverse proxy to PHP (FastCGI, mod_fcgid + Apache). Memcached is running on the same server as well: memcached -d -p ...
13
votes
3answers
17k 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 ...
7
votes
2answers
3k 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 ...
0
votes
0answers
45 views

memcached available, but not installed and unable to uninstall, but run in process

I installed memcached in my cent OS VPS. Somehow it's not work as i expected and now I switched to suPHP. But when I run 'top' command I can see 'memcached' run as a nobody user. 1727 nobody 20 ...
0
votes
2answers
153 views

Wordpress (using varnish + apc + w3tc): Do the statistics get updated when the data is being retrieved from the cache?

If the data is served to the client from the varnish cache, does it still get registered as a hit in the statistics (could be derived from nginx logs or might be google analytics)? I believe if the ...
0
votes
1answer
94 views

4 Magento Requests per second = 210 mbit memcache bandwith?

After searching serverfault for similar questions without success, these are my numbers for one magento instance, running on multiple servers: After varnish about 4 requests per second hit the ...
1
vote
0answers
124 views

Why is memcache not functioning with elgg in debian 7?

I am moving a php website (built using elgg - www.elgg.org) from a CentOS server to a different Debian 7 server and have installed memcached + php5-memcache on both. I have recreated all the ...
1
vote
1answer
112 views

Should we increase local port range limit on busy memcached servers

nixcraft has a tutorial on configuring memcached server(link) at the end says: For busy memcached server you need to increase system file descriptor and IP port limits here is the code to do ...