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
89 views

MediaWiki Multi Site + Memcached

I have multiple mediawiki installations, and I'm wondering if it's safe to allow them to all use the same memcached server. Are there any "gotchas" involved?
1
vote
1answer
205 views

how can I effect DNS Caching on PHP/Memcache application

In a very high loaded Ubuntu/PHP web server I found that the PHP line: $memcache->connect("int-aws_ec2.memcached.myapp.net",11211); sometimes takes ~5 secs. Replacing the url with the ip address ...
1
vote
0answers
313 views

Memcached and repcached not replicating 2 master servers

I have memcached-1.2.8-repcached-2.2 installed on memcached on centos. They install went great and when i start memcached i get: replication: connect (peer=192.168.1.2:11212) replication: marugoto ...
1
vote
1answer
1k views

Optimizing Web Server(apache2+nginx+memcached+eaccelerator) for high-loaded heavy application

I have a server with (Apache2 + nginx as reverse proxy, memcached cache and eaccelerator). The application is Magento - it is very heavy, due to high modularity and a lot of php files(5000-10000+). ...
1
vote
0answers
286 views

repcached broken sync - memcached high avalaibility

I have been using repcached (memcached-1.2.8-repcached-2.2)to store php sessions in order to have a highly available memcached. Everything runs perfect, I can restart a daemon without losing sessions. ...
1
vote
1answer
149 views

Tips setting up nginx as proxy for php and node frameworks

We have a current, soon-to-be legacy PHP app installed in production, served with apache. Working fine. Currently trying to add in new Node.js alpha stack, which we're planning to install alongside ...
1
vote
2answers
404 views

Memcached possibly leaking memory

I am having a really odd problem and I am lost a bit as I do not know what to do any more. We are running in production 4 dedicated memcached boxes. All boxes have 48Gb of RAM, they are running ...
1
vote
1answer
238 views

My ubuntu server can ping and ssh can connect, but ssh can't do the authuncation and halt

I have two ubuntu server. Each running php-cgi by phpfpm, memcached, mongodb. And these servers are not running in a high load state. After running several days. The server will halt. No service and ...
1
vote
1answer
278 views

php with apc+memcache+squid

I have a basic php installation. I want to install apc + memcached and squid to speed up the website. I have run into various resouorces regarding this, but one thing is not clear. Should php be in ...
1
vote
2answers
1k views

high load web server setup

I'm preparing a server setup for a dating website who need to be able to process around 5'000 - 10'000 req/sec to the main site. My idea was to do it this way: Server for static content (css, js, ...
1
vote
2answers
204 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
3answers
2k views

memcached and PHP … massive lag with sessions

I'm working on a new server built with Unbuntu 10.04, running php-fastcgi, nginx, and memcached. phpinfo() script loads and works great, same as a test memcached script. For any script using ...
0
votes
1answer
4k views

How do you safely replicate Memcached data?

I have ~100GB of data running on several Memcached servers, but we're migrating all of our infrastructure to Amazon AWS so I'd like to find a way to replicate this information on these new servers. ...
0
votes
2answers
997 views

Memcached will not start

I have this in my /usr/local/: libevent-1.4.so.2 memcached When I do this, it will not start: ./memcached -d -u root -m 3900 -p 11211 ./memcached: error while loading shared libraries: ...
0
votes
1answer
105 views

Memcached is slowing down the website in VirtualBox [closed]

I noticed our web project (Drupal) runs slower when it's using memcached in the virtual box. The page load time is more the twice as fast without memcached. I haven't noticed any unnatural memcached ...
0
votes
3answers
2k views

Installing PHP 5.3 Pear on centos 5.8

I just created a VPS with 32 bit Centos 5.8 and installed php53 and a host of other php 5.3 packages. I would like to install memcached using yum but I get the following error Resolving Dependencies ...
0
votes
2answers
174 views

Can memcache invoke a script to reload itself after startup on Ubuntu?

Since memcache stores everything in ram, it will lose its store after a node recovers from failure. Does memcache offer a hook to invoke a script after it starts up? We want that script to do ...
0
votes
1answer
114 views

Is there a benefit to managing programs with a process manager instead of with init.d?

I'm using Redis, Memcached, and Nginx, to be specific, and Supervisor as the process manager, but any general information is helpful as well. Each of the aforementioned programs when apt-get ...
0
votes
2answers
4k views

Connecting to memcached “what port to use?” (php)

I've installed memcached perfectly and i can created a new instance but i don't understand if I'm connection to the right port... I always get a false return from get(key) Here is my code, $sql ...
0
votes
2answers
5k views

how to install pecl memcached?

i need to install memcahced (not memcache) on my computer (ubuntu 10.10 and php 5.3.3), i did the follwoing: $ apt-get install php5-memcached libmemcached-tools libmemcached5 =>DONE SUCESSFULLY $ ...
0
votes
1answer
262 views

is there any point running APC **and** memcached concurrently

Do APC and Memcached cache the same data? I understand that APC caches both files and objects/variables whereas memcached is object-only, but does memcached offer anything that APC doesn't? I've ...
0
votes
3answers
344 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
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
391 views

How to “distribute” memcached?

I know how to install and use memcached on one server. But I heard you can "distribute it"? How does that work, and how can I enable that feature?
0
votes
2answers
328 views

memcached with telnet disabled

If telnet is disabled on my RHL server memcached gives the error of unable to connect to host: myMachine:port number when starting my java web app. Is it mandatory to enable telnet for memcached to ...
0
votes
1answer
31 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 ...
0
votes
2answers
1k views

Configuring SASL support in libmemcached

I'm trying to build libmemcached with SASL support on OS X Mountain Lion. I have built memcached (1.4.15) with SASL support: $ memcached -S -vv Initialized SASL. slab class 1: chunk ...
0
votes
1answer
488 views

Is there something like phpMyAdmin for Memcached?

Is there any tool to see the keys/values stored in my memcached instance? I've found simple scripts like this http://snipt.org/xtP, but I get only the keys. Thanks in advance
0
votes
1answer
382 views

Connection errors when trying to use Memcache

I'm new to 'Memcache' but I've installed it and I think its' running, so far have I done the following correct? mkdir memcache wget http://pecl.php.net/get/memcache-3.0.6.tgz tar -xvfz ...
0
votes
2answers
876 views

How do I get php-memcached extension to work with SASL on RHEL6

I have RHEL6.1 with php. I've installed libmemcached-1.0.2 from src.rpm and compiled php-memcached 2.0.0b2. If I try to setSaslAuthData('user','pass') and write something to memcached (Couchbase ...
0
votes
1answer
3k views

Nginx+PHP-FPM+APC+Varnish+Memcached: High Mem/Swap consumption?

I've got running a VPS at Linode with 1024 MB RAM, Ubuntu 11.04 and Nginx+PHP-FPM+APC Varnish+Memcached active. I've setup a couple of test blogs with WordPress 3.2.1 and everything works, and the ...
0
votes
1answer
91 views

Optimizing Server

Let me lay it all out: Lamp environment Mysql is already optimized. I've got memcached setup I've got APC setup Traffic on these web servers is going to come in hard and fast, its not going ...
0
votes
1answer
713 views

Can't get memcached / php memcache installed on CentOS 5.5

I cannot get memcached installed for the life of me on CentOS 5.5 yum install memcached says package doesn't exist I have tried installing from source, as well as yum. Apparently memcached is ...
0
votes
2answers
1k views

Memcached extension error in PHP

yesterday i migrated to Rackspace (CentOS 5.5). Everything was already configured (apache, php, mysql, memcached) and working well. The only thing i forgot, and installed at last was the mail server ...
0
votes
2answers
368 views

Taggable alternatives to memcache

I'm looking for a caching solution quite similar to memcache, but the one thing I sorely miss is invalidating content based on a tag. Many preprocessed results depend on multiple sources of data, and ...
0
votes
3answers
124 views

How do I see how quickly items are dropping out of memcache?

Is there a good way to monitor how quickly items are dropping out of memcache?
0
votes
1answer
181 views

Save server from overload

As my client's php ecommerce portal is on a dedicated hosting but there are certain overload issues. Like the CPU uses goes upto 84% on a 60 req/sec , so i am thinking to propose a plan. To implement ...
0
votes
1answer
219 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
1answer
54 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?
0
votes
1answer
27 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: ...
0
votes
1answer
149 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
2answers
306 views

Compiling libmemcached Fails on Centos

I am trying to compile libmemcached on Centos 6.4 with gcc 4.8.2. I've run configure which gives me: Configuration summary for libmemcached version 1.0.17 * Installation prefix: /usr/local ...
0
votes
1answer
259 views

How i can setup a nginx cache strategy that first try amazon s3, then memcache and do a fallback on miss?

i have a large site with lot of pages that almost never change, right now i am using two memcache servers (amazon elasticache), but this its really expensive. Thats why for this files that barely ...
0
votes
1answer
73 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 ...
0
votes
1answer
264 views

Right way to configure memcache

I'm trying to change memcache memory size limit in my CentOS env. I've examined other questions and found out there SHOULD be a file, which is mostly under /etc/sysconfig/memcached and if not I should ...
0
votes
1answer
110 views

Memcached ports and CSF

I've got a small / medium sized VPS powered by WHM and running a few personal websites alongside a Magento powered web-store. Not being a real expert when it comes to server configuration details I've ...
0
votes
1answer
135 views

Memcached distribution

I have a question about memcached distribution across nodes. We have 20 memcached nodes with 200GB memcached on each. Our apps are PHP apps. $memcache->setOption(Memcached::OPT_DISTRIBUTION, ...
0
votes
1answer
109 views

nginx proxy_cache or Memcached

I currently use nginx's proxy_cache for file-based caching in front of three Django applications (Apache/mod_wsgi). For some locations/URLs, I disabled proxy_cache and used Memcached (per view) within ...
0
votes
1answer
206 views

Memcached in a cloud environment: dedicated server or localhosts?

I'm something of a rookie, so apologies if I'm missing something obvious since my research hasn't led me to much relating to our somewhat unique situation. I'm going to be transitioning a php app to ...
0
votes
1answer
433 views

Thread Safe php-pecl-memcache and php-pecl-mongo

I'm looking to switch a Fedora server running Apache from prefork to worker. Everything seems to be fine except the php libraries for Mongo and Memcache. Has anyone had any success getting these to ...