Questions tagged [memcached]

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.

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.

390 questions
3
votes
2 answers

PHP memcached session redundancy

I'm trying to follow How To Share PHP Sessions on Multiple Memcached Servers article and implement that to my environment: /etc/php.d/memcache.ini: # grep -v ^\;…
alexus
  • 13,112
  • 32
  • 117
  • 174
3
votes
2 answers

Allow Apache use more memory

I use apache2 behind nginx on 8 core CPU 48GB RAM server. Now my system uses only 3GB of all memory, but there are high load on CPUs. How can I use my free memory instead of CPUs time? I also use memcached and xcache.
Andrei Nikolaev
  • 95
  • 1
  • 2
  • 5
3
votes
3 answers

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 figure out what is actually using that much CPU…
3
votes
1 answer

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 sessions, database indexes, user data etc. Question;…
3
votes
2 answers

Memcached with SASL: Couldn't find mech PLAIN

I'm trying to get memcached working with SASL. I'm compiling memcached and libevent from source. These are the steps I took (both under root and a user, same result): Having these packages: cyrus-sasl.x86_64 2.1.23-13.el6_3.1 …
Arie
  • 141
  • 4
3
votes
1 answer

How to optimally configure memcache running on 16 cores 144G ram server?

Memcache is the only important app running on the server Server has 16 cores and 144G RAM Memcache is given 135G Memcache runs at 32 threads Gigabit network, test shows at least 300Mbit/s availability on network port 600 connections 3000 requests…
3
votes
1 answer

Nginx with Memcached module

I'm running Wordpress website with "W3 Total cache plugin" for Memcached on Nginx. I know that there is a Nginx module available for Memcached and I'm wondering what's the preferred/recommended method - plugin or module? What's the actual…
HTF
  • 3,148
  • 14
  • 52
  • 82
3
votes
3 answers

What are the speed drawbacks from using multiple servers to serve a website?

I know these questions are hard to answer :) But I want to get some kind of an idea of the impact of separating services onto different servers. Specifically, I am setting up a website that will have a media server (apache serving static files), a…
ae.
  • 231
  • 1
  • 7
3
votes
1 answer

Does a RewriteCond that checks for the existence of a file cause high IO latency?

I am setting up an apache configuration to check for the existence of a file. If the file exists, then the server will redirect to a maintenance page. If not, the application will get served up normally. I'm concerned that with a large number of…
Chris Thompson
  • 537
  • 1
  • 13
  • 22
3
votes
1 answer

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 do not allow me to add extra servers. Since my 4…
Razzie
  • 173
  • 7
3
votes
3 answers

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 restart of the memcached process. today i…
Mike Waites
  • 191
  • 1
  • 9
3
votes
3 answers

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 a kind-of poor-man's replacement for revisiting all…
isync
  • 703
  • 2
  • 8
  • 20
3
votes
2 answers

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 friend's site that now and then gets big spikes in…
jgabor
  • 43
  • 1
  • 7
3
votes
1 answer

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 number of cached items to be in hundreds of millions.…
Andrey
  • 354
  • 5
  • 17
3
votes
2 answers

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 guide the initial setup. best practice with…