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

3
votes
2answers
4k views

Configure php5-fpm for many concurrent users

EDIT: Added some configs and a clarification on how many is "many", as requested by anthonysomerset. EDIT 2: Added fastcgi_cache to nginx config, as suggested by SleighBoy. I run a server for a ...
0
votes
1answer
675 views

When set SESSION_ENGINE to memcached, Django website halts

I have set up memcached in Django using Pylibmc binding: CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.memcached.PyLibMCCache', 'LOCATION': ['10.241.1.1:11211', ...
3
votes
2answers
362 views

Memcached scaling strategy

Currently I am running a production environment with 4 dedicated memcached servers, each of them having 48Gb of RAM (42 dedicated to memcache). Right now they are doing fine, but traffic and content ...
4
votes
1answer
2k views

Confused about caching solution: MemCache, Varnished, mod_cache, else?

I have a very heavy site in my server. The load of the server is always about 30-50 and sometimes it become even 150 and server work really hard. I'm looking for a caching solution that can increase ...
0
votes
3answers
145 views

Close port 1121

How can I open port 1121 for specified ips? I have memcache installed, and I need to access to memcache from another server for this in /etc/memcached.conf I set my ip -l 192.0.0.106. But after this ...
0
votes
2answers
369 views

Pros and cons of one vs several memcached instances on the same server [duplicate]

Possible Duplicate: Memcached - one large instance vs many smaller I know this might depend on my specific scenario but if possible let's analyze it in general :) I wonder if using 6 ...
1
vote
1answer
289 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 ...
0
votes
1answer
913 views

Need a little advice with apc, node.js, varnish, memcached, nginx

Just need a little advice here if anyone can help. Currently i have nginx running on a virtual private server, i am looking into installing node.js so i can use AjaxIM (http://ajaxim.com/) , and ...
6
votes
1answer
1k views

Having problems with maintaining sessions across multiple Amazon EC2 instances

One of my sites is hosted via Amazon EC2 service. The problem starts happening when the site faces a heavy load which in turn spawns a new EC2 instance via AutoScaling. This is good but the issue is ...
0
votes
1answer
488 views

Memcached can't connect with php

I have centos 5.3 and I just installated memcached 1.4.2. I can telnet it fine and do stats, etc., but when I try to connect to it over php I get an error that it can't connect. It was SELinux.
1
vote
1answer
2k views

How to debug memc/memcached timeouts with Nginx?

Problem Regular timeouts from the memcached backends in Nginx (see example errors below) Things already tested: it occurs both on local and remote memcached servers so the network can't be the ...
1
vote
1answer
682 views

600+ memcache req/s problems - help!

I am running memcached on my server and when it hits 600+ req/s it becomes unstable and causes a big load of problems. It appears when the request rate gets that high, my PHP applications at random ...
0
votes
2answers
7k 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 ...
6
votes
3answers
14k views

How to setup Memcached/APC on Ubuntu Server 10.04 for PHP?

I will be soon setting up Simple Machines forum on a fresh Ubuntu Server 10.04 VPS. The forum software is written in PHP. I will using Nginx as the web server, and I will be following a guide to ...
2
votes
3answers
5k views

php_memcache dll for windows - where can I find it?

This is the only link I've found, but it doesn't work. http://pecl4win.php.net/ext.php/php_memcache.dll Where can I find a precompiled dll for the php_memcache extension?
0
votes
2answers
717 views

Why is Memcached not working with vBulletin?

I have Memcached configured and setup to with work with vBulletin 4.1.5 on a Gentoo Linux 32-bit Linode VPS. Memcached is started, includes/config.php is configured to use the memcache, and the site ...
2
votes
1answer
235 views

PHP APC MAJOR Fragmentation Issues?

So I have been using memcached to cache lots of data that was the result of queries to the database. Everything left at default, and on average I stored < 40MB in memcache. I used memcache.php to ...
0
votes
2answers
179 views

Memcached and Mysql architecture

Right now we have 2 servers. webserver + memcached mysql server the mysql server is a new and a strong server and it is not being utilized fully. I was debating if I should migrate the memcached ...
0
votes
1answer
95 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
453 views

Failover strategy for memcached

I am trying to understand how memcached works (newbie) to anticipate the sudden failure of a node using/offering memcached. I have a couple of questions to ask: i) If a have a system with 3 nodes ...
2
votes
2answers
471 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 ...
0
votes
1answer
38 views

Storing cached files so they are accessible by more than one server

I want to start using multiple front-end Apache servers for my website. At the moment I store various HTML files in a caching directory, e.g. "/htmlcache/homepage.html" Obviously I don't want to ...
2
votes
1answer
564 views

Amazon EC2 ELB directing load to other instances and session stores

If we scale up (add an instance to ELB), could we redirect some existing requests to the new instance. So that, The users that we force to a new server will be asked to login again If we scale down ...
0
votes
2answers
315 views

Can Memcached limit “write per second” and “read per second” on MySQL?

I need to reduce the value of "write per second" and "read per second" on MySQL (this is for statistics: total views of post). Can Memcached doing this job? Thanks
2
votes
2answers
460 views

Memcache - Issues in a distributed environment with many nodes

I've had a quick look through the other similarly titled questions and none are particularly similar to the issues I'm currently having. Basically, we've had a multi node memcached ring running for ...
1
vote
2answers
6k 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 $ ...
1
vote
1answer
249 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 ...
0
votes
1answer
627 views

Deploying Memcached as 32bit or 64bit?

I'm curious about how people deploy memcached on 64 bit machines. Do you compile a 64bit (standard) memcached binary and run that, or do people compile it in 32bit mode and run N instances (where N = ...
0
votes
1answer
244 views

How do I let memcached be accessed from another machine?

So I have been using memcached with a new django app and it works great, I can serve the dynamic version of the site slighly faster than if I mirror the files to a static sever. I have this setup on a ...
1
vote
3answers
397 views

improve mysql server speed for an app hosted on VPS

I'm running several applications on my VPS. These apps are built with PHP and used in a social network. Currently, I have some problems with the server's speed. My VPS has the following ...
1
vote
2answers
205 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
188 views

In Nginx, can I handle both a location:url or a content-type: text/html response from memcached?

I'm setting up an nginx - apache reverse proxy where nginx handles the static files and apache the dynamic. I have a search engine and depending on search parameter I either directly forward the ...
0
votes
1answer
220 views

Multi-Application Server Environment and Memcached Security

We are looking to integrate Memcached into our infrastructure, but have a security concern before we do. We run several platforms including ASP.NET and Coldfusion and have many app developers working ...
2
votes
1answer
745 views

memcached php module not compiling on EC2

I'm trying to do this on EC2, micro instance using amazon linux I installed and started the memcached service without problems. But when trying to make the php part using pecl it told me pecl wasnt ...
1
vote
3answers
365 views

Puppet defined resource - selective parameterization?

I'm currently banging my head trying to find the "best way" to achieve this type of granularity for puppet: I have a server running memcached in testing environment and another one running for the ...
1
vote
2answers
1k views

Is it possible to install apc, memcached, nginx and varnish all together?

Just wondering if it is possible to have nginx, apc, memcached, and varnish all running together. i am currently running on a dreamhost private virtual server, not that it matters. any input would be ...
1
vote
1answer
139 views

MAMP extension won't load

I recently installed MAMP Pro 1.9.5. I followed several tutorials online explaining how to enable memcached. I was able to compile correctly with no errors. I added memcache.so to my php.ini as ...
1
vote
1answer
651 views

Will innodb benefit from memcached?

from - http://www.readwriteweb.com/hack/2011/04/you-got-nosql-in-mysql-memcach.php (correct me if does not make sense) potential benefits saving complex query calculation into distributed ...
1
vote
3answers
2k views

Setting up memcached/memcache with Php on Ubuntu 10.10

I'm assuming memcache and memcached are two completely different things, and that I want to use memcached. I have two separate servers (one is a webserver, one is meant for the db). I don't know ...
3
votes
1answer
387 views

Memcached - one large instance vs many smaller

I will be adding a memcached server to my web app to offload lots of db requests. I'll be mostly caching different small id-name pairs (memberid-membername, blogid-blogname, etc) and expect total ...
1
vote
1answer
630 views

Using memcached with upgraded Subversion FSFS repository

Subversion 1.6 release notes suggest that it's possible to use memcached to "cache data of FSFS repositories". Creating a new repository using svnadmin create has a fsfs.conf file within the db/ ...
0
votes
2answers
330 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 ...
2
votes
1answer
1k views

How is distributed memcached supposed to increase performance if it's making network calls?

http://memcached.org/about Greetings all, I love memcached but have thus far only used it in single machine setups as a local cache. I have read extensively about memcached's distributed nature and ...
3
votes
3answers
655 views

Issues Installing PHP Memcache module

I am trying to install memcache on my VPS. When I type $ pecl install memcache I get this error checking whether the C compiler works... configure: error: cannot run C compiled programs. If you ...
1
vote
3answers
1k views

How to confirm memcache memory increase?

Alright, I have downloaded /etc/sysconfig/memcache And edited the file that contained "PORT="11211" USER="memcached" MAXCONN="1024" CACHESIZE="64" OPTIONS="" to 1000 cachesize. I uploaded the file ...
5
votes
3answers
4k views

Nginx & PHP caching: fastcgi_cache, proxy_cache, APC or memcached or combo?

We have webservers running nginx 7.65 along with fastcgi PHP5 and are looking into caching possibilities to speed up content delivery and lower system loads. The servers run different (custom) ...
3
votes
1answer
514 views

Installing memcached on Windows Server 2003

I installed memcached on my dev box which is Windows 7. Everything worked great. Now I want to install on my test server which is Windows Server 2003. I want to run memcached as a Windows service, ...
1
vote
3answers
629 views
1
vote
1answer
307 views

How to backup MySQL (mysqldump) when Memcached installed?

The server OS is CentOS, with Memcached installed Before Memcached installed, I use mysqldump -u root -p --lock-tables --add-locks --disable-keys --skip-extended-insert --quick wcraze > ...
0
votes
1answer
278 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 ...