Questions tagged [memcache]

113 questions
32
votes
3 answers

How to increase the amount of memory memcache uses?

I am currently on a Xeon 7550 server running Redhat x86_64 es5 with 32gb RAM. I have memcache installed and the only step remaining in the configuration is to set how much memory it uses. I had done this on my old server, where I downloaded a file…
Peter Johansson
  • 377
  • 1
  • 6
  • 8
14
votes
3 answers

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 drupal.org You should probably lock down the memcache…
PatrickS
  • 340
  • 1
  • 3
  • 12
12
votes
4 answers

How to configure nginx to serve static contents from RAM?

I want to set up Nginx as my web server. I want to have image files cached in the memory (RAM) rather than disk. I am serving a small page and want a few images always served from RAM. I don't wish to use Varnish (or any other such tools) for this…
Vijayendra
  • 245
  • 1
  • 2
  • 5
8
votes
3 answers

Troubles with memcache.so

I've been asked to launch a site that someone else built. It is a Wordpress shop site that needs Memcached to run, and I've been having troubles getting Memcached and the memcache php plugin working on my local server. Before installing memcached…
CourtDemone
  • 323
  • 1
  • 4
  • 8
7
votes
2 answers

Redis vs Memcache

I'm a bit new to Memcache and Redis and I'm trying to understand the difference between the two and what each actually is. As has been explained to me Memcache is a database caching solution. Data from frequently run queries are cached to be re-used…
Brad
  • 589
  • 1
  • 9
  • 26
7
votes
1 answer

Memcache+PHP session tuning: How does memcache expire keys?

I've done some research into this and have not found a definitive answer. We have a web app that is using the PHP+Memcache session handler. I have several questions, all interrelated, but ultimately my issue is, "Why are PHP sessions apparently not…
JDS
  • 2,508
  • 4
  • 29
  • 48
6
votes
3 answers

Memcached Lagging

Let me preface this by saying that this is a followup question to this topic. That was "solved" by switching from Solaris (SmartOS) to Ubuntu for the memcached server. Now we've multiplied load by about 5x and are running into problems again. We are…
Brad Dwyer
  • 263
  • 3
  • 8
6
votes
2 answers

memcached crashed without notification

We rely heavily on memcache and are serving a few billion requests per month. We have 5 memcache servers. Last night, we saw an 25% increase in our traffic. The graphs show that requests and data transfered by each memcache increased and made them…
Sparsh Gupta
  • 1,117
  • 7
  • 20
  • 31
6
votes
1 answer

Looking for specifics about how PHP session garbage collection works

PHP has several session settings that control the probability that garbage collection (i.e. deletion of expired sessions) will occur. My question is: does this probability apply to all running Apache threads on all virtualhosts on any given Apache…
JDS
  • 2,508
  • 4
  • 29
  • 48
6
votes
3 answers

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 start up on boot for multiple memcached server…
p4guru
  • 963
  • 1
  • 8
  • 15
5
votes
2 answers

error while installing the libmemcached

I get this while installing libmemcached root@server [/libmemcached]# make make all-am make[1]: Entering directory `/libmemcached' if /bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -ggdb -DBUILDING_HASHKIT …
Utku Dalmaz
  • 1,309
  • 2
  • 12
  • 18
5
votes
1 answer

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 files are possible) Currently we are using nginx…
Sparsh Gupta
  • 1,117
  • 7
  • 20
  • 31
5
votes
3 answers

Problems installing Memcache (PECL extension)

I have installed memcached fine, and now I will need to install PECL extension memcache. Im running RedHat x86_64 es5. The installation gives me this: downloading memcache-2.2.6.tgz ... Starting to download memcache-2.2.6.tgz (35,957…
Petrus
  • 115
  • 1
  • 2
  • 5
4
votes
1 answer

Memcache/Elasticache holding many user passwords in memory instead of DB

I have two servers in AWS. One is a live production server (a multi site WordPress installation with hundreds of sites and about 5,000 users) and the other is a clone of prod that is being configured for a test server. The live one has four array…
user144722
  • 41
  • 1
4
votes
1 answer

Nginx, memcached and cakephp: memcached module always misses cache

I've got a simple nginx configuration; server{ servername localhost; root /var/www/webroot; location / { set_md5 $memcached_key $uri; index index.php index.html; try_files $uri $uri/ @cache; } location @cache { …
Tim
  • 175
  • 8
1
2 3 4 5 6 7 8