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
2answers
3k views

Memcached: can connect but impossible to set value

I installed memcached on Debian squeeze using the package memcached. The memcached instance starts with 384 MB. Then I try to connect: jcisio@cecile:~$ telnet 127.0.0.1 11211 Trying 127.0.0.1... ...
5
votes
2answers
18k 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
2answers
2k views

Cannot load Memcached in PHP on Gentoo

I am using Gentoo Base System release 2.0.3, apache-2.2.21-r1, php 5.3.8-pl0 and memcached-1.4.5. I have done the following: emerge dev-php/pecl-memcache emerge dev-php/pecl-memcached emerge ...
1
vote
3answers
166 views

Would Memcached help in this scenario?

I work for a large internet site where people can share large pieces of text with each other. We store most information in InnoDB databases, but the actual pieces of text are stored somewhere in text ...
0
votes
2answers
298 views

Protecting direct access to port 11211 via a browser (memcached)

When I recently discovered about accessing ports via your browser at a domain level. Example, I accessed my domain at port 11211, I got an output of this: ERROR ERROR ERROR ERROR ERROR ERROR ERROR ...
0
votes
2answers
1k views

Problems installing memcached

I am trying to follow the instructions here to install Memcached on a CentOS machine, and I'm not having much luck. The instructions say to first enable rpmforge repository as follows: rpm -Uhv ...
3
votes
3answers
823 views

Copy MySQL to RAM as a poor man's memcached replacement?

What about this idea: I've got a 4GB MySQL database, with few UPDATEs. On system startup I copy it to RAM and run it from there. Every couple of hours or even on UPDATES, I dump it to disk. ...as ...
4
votes
2answers
2k views

Are there any drawbacks to running memcached on a Unix domain socket instead of the network (assuming one server)?

I’m setting up a Django website to use memcached to cache its pages. (The content of each page won’t change very often at all, so I’m hoping that most of the site will be served from memcached most ...
1
vote
1answer
3k views

Memcached Cluster - better to have 3 smaller instances or 2 mediums ones?

Currently I have 2 small servers in an memcached cluster. We are approaching out limits with them and need to grow. What are the pros/cons or going adding another small instance compared with having 2 ...
0
votes
2answers
1k 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 ...
1
vote
1answer
951 views

increasing memcached limit size

I am having issues with the limit size of my memcached: How do I increase the limit_maxbytes? as the bytes_written is more than the limit_maxbytes?
0
votes
2answers
672 views

Better performance with memcached cluster or local memcaches?

I have a small cluster of servers balancing a Java web app. Currently I have 3 memcached servers caching data and all web apps shares all 3 memcached instances. I often get strange slowdowns and ...
1
vote
1answer
643 views

top on memcached server shows 110% cpu (memcached process) and 55% idle on cpu(s)

I tested on AWS ubuntu 10.04 memcached 1.4.2 When testing with memslap (different concurrent users numbers and different instance types (8G and 1.7G memory) Top shows 110% cpu on the memcached ...
0
votes
1answer
304 views

Memcached server: Is it a good practice to point two server urls to the same server?

I have a system where there are connections to a memcache server from several different files and servers. I would like to stay with one server but keep the option of increasing the number of ...
2
votes
1answer
959 views

How does upstream works in nginx (memcached_pass)?

Does nginx go to the next host in upstream block, if previous host not available or doesn't exist? upstream cache_cluster { 127.0.0.1:9000; //something on this port 127.0.0.1:11211; ...
1
vote
2answers
588 views

Memcached has to start by nobody? How to start it?

How to start the daemon by nobody? Do I have to start as nobody? I have only one box. So how many ports can I give to the daemon?
0
votes
2answers
921 views

How to optimize TCP / IP stack in Linux? [closed]

Currently I noticed there are about 15K open connections to localhost. It is mainly connecting to Memcached. I am clueless where I should start to optimize TCP/IP stack. Memcached support UDP, but ...
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
159 views

Choose which memcache version

For memcached server we are running on version 1.4.5, and the application is built with PHP 5.3.6 and memcache (http://pecl.php.net/package/memcache) version 3.0.5 Currently we have 2 memcached ...
1
vote
3answers
3k views

Installing PHP PECL memcached extension on CentOS 5.6

I would like to setup memcached on my server so that I can learn how to use it. It is my understanding that the basic requirements to use it with PHP are: PHP memcached PHP PECL memcached library ...
3
votes
2answers
358 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 ...
-1
votes
2answers
2k views

Uninstall all instances of memcached

My host asked me to: " You will need to remove all instances of memcached that you have installed. " How would i go about doing this? I am on CentOS
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
143 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
362 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 ...
0
votes
1answer
665 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', ...
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 ...
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 ...
0
votes
2answers
2k views

Multiple Magento web servers, single instance memcache issues

I have two web servers with a Magento instance on both. Each shares the same httpd.conf, php.ini and my.cnf, along with local.xml and config.xml magento configuration files. I have another server ...
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
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 ...
2
votes
1answer
234 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
702 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 ...
0
votes
2answers
178 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
449 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
462 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
671 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 ...
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
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
555 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 ...
1
vote
2answers
3k views

Memcached problems “failed to listen on TCP port 11211”

I just installed memcached on my Mac OS X 10.6.8. It installed perfectly and when I type in memcached in Terminal I get this: failed to listen on TCP port 11211 tcp listen: Address already in use ...
0
votes
1answer
963 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 ...
2
votes
2answers
454 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
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
239 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
395 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 ...
4
votes
2answers
573 views

Does Memcached support IPv6

Has anyone used Memcached with IPv6? Can you provide any configuration tips, gotchas, or mention any stability issues you've had?
0
votes
1answer
910 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 ...
2
votes
1answer
731 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 ...