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

Server performance worsened after a hardware upgrade: how should I reconfigure the server? [closed]

I'm running a site on an Ubuntu/Apache/Django/PostgreSQL stack. We upgraded our server recently from 1 processor with 2 Gb total RAM (with 0.5 Gb of that RAM assigned to memcached) to a new server ...
1
vote
1answer
204 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 ...
0
votes
1answer
151 views

Can a slow database cause a web app to hold up a memcache connection?

I have a php application that uses memcache and a back-end database At times we see high "current connections" in memcache and can't determine why. Why php "misses" from memcache and needs to go ...
4
votes
1answer
344 views

How does php know what memcached node to look for its data in?

I am new to the world of Memcached clusters If I have a php web application that is using memcache - how does it does its hash and decide what node to check for a particular value to avoid having to ...
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+). ...
3
votes
1answer
152 views

Memcached on same servers as websites

I have a website that runs on 4 loadbalanced servers. These are Windows servers, each with 16 GB of memory. I need to move to a shared cache, so I was thinking of Memcached. However, budgetary reasons ...
0
votes
1answer
152 views

How to use Memcached

I read a bit about memcached but struggling to understand how exactly we use it. Is it a kind of server/application that we have to install on our machine? Is it a script that we have to include in ...
0
votes
1answer
269 views

Memcached and Django - When Ajax action is performed, ALL css and js is missing

I've got Django running and caching into Memcached. I have some ajax actions on a page and when those actions are performed, and the browser refreshd, the CSS and JS files are no where to be found. ...
4
votes
1answer
8k views

nginx with Memcache Vs Varnish

I was wondering if anyone has any comments / benchmarks / suggestions on Varnish Vs Memcache when used to serve content (usually 2-5kb JS file depending on the parameters in request; thousands of diff ...
0
votes
2answers
366 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 ...
5
votes
3answers
6k views

Multiple Memcached server /etc/init.d startup script that works?

I install memcached server via source and can get standard start up script installed for 1 memcached server instance, but trying several scripts via google, can't find one that works to manager auto ...
2
votes
3answers
2k views

memcached not restarting properly start-stop-daemon: warning: failed to kill 8175: No such process

im having some really weird and annoying issue with memcached. im running ubuntu server 10.04lts on a linode instance. i am using fabric with a django project and part of the fabric script allows the ...
-1
votes
1answer
74 views

Should memcached be installed before or after cpanel?

I want to install memcached. I want to know if I should install cpanel first, or after the memcached installation
3
votes
2answers
1k views

Multiple AWS EC2 running Auto Scaling and Distributed Memcache

I'm planning to use distributed Memcache across a series of Linux web servers on Amazon EC2. These EC2s currently run auto scaling so will increase and decrease with load. I have used this post to ...
0
votes
1answer
1k views

Memcache Master and slaves

I'm using memcached-1.4.5-1.el5 & memcache-2.2.6 as php extension and memcached-1.2.8-repcached-2.2.1 for replication. The above packages are installed on 4 servers. How can I do the following? ...
0
votes
1answer
379 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 ...
3
votes
2answers
14k 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
153 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 ...
4
votes
2answers
491 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
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
270 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
0answers
207 views

Memcached won't start as a service

I've installed memcached on my centos 5.2 box and it runs ok if I start it manually but I'm struggling to set it up as a service. After a long pause I just got this error: service memcached status ...
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 ...
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 ...
3
votes
3answers
804 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 ...
0
votes
2answers
860 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
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 ...
5
votes
1answer
698 views

How do I monitor memcached evictions?

How do I monitor memcached to know if / how many evictions are occurring, and how much memory is used/free.
1
vote
1answer
684 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
594 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
528 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
284 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
840 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; ...
5
votes
3answers
5k views

Memcached memory usage

Is there any command line or php script which returns the memcached total memory usage?
1
vote
2answers
522 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
1answer
151 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 ...
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 ...
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
586 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', ...
0
votes
0answers
318 views

memcached server on ubuntu 10.04

The official repository of ubuntu 10.04 has an outdated memcached and i would like to have a newer version running on it. What are your opinions ? Should i use couchbase membase server or I should I ...
3
votes
2answers
326 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
129 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
325 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
277 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
871 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
483 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
1k 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 ...