Questions tagged [memcache]

The tag has no usage guidance.

0
votes
1answer
261 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
801 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 ...
6
votes
1answer
13k 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
3answers
1k views

Role of Varnish cache

Right now I'm using nginx together with APC for php cache and memcache for mysql cache. I was wondering what Varnish cache can do in my existing environment as I am thinking to implement varnish, any ...
0
votes
3answers
469 views

PHP Memcache module is compiling with different module (debian)

I've downloaded memcache-2.2.6 and when i run: phpize && ./configure --enable-memcache && make I get: Configuring for: PHP Api Version: 20090626 Zend Module Api No: ...
1
vote
2answers
933 views

Where to look if the website loses the user session?

Suddenly a few days ago I have noticed that in my website, when I complete a form of a place for example (POST) and then I do a redirect to view that place, the user session gets lost. If I refresh ...
0
votes
2answers
375 views

How to install memcache (to ease mysql load) in php

I want to install memcache on my dedicated server, how do I do that using SSH? OS: CENTOS 6.2 x86_64, PHP ver. 5.2.17, APC already installed.
2
votes
2answers
1k views

m1.small nodes for memcache array on AWS EC2

I am currently having an m1.large instance acting as a memcache server. I would like to replace that with 2 m1.small nodes for High Availability more or less for the same cost. But I am concerned ...
0
votes
1answer
2k views

MemCache-repcached compile error

I'm trying to install [memcached-1.2.8-repcached-2.2.1]( http://sourceforge.net/projects/repcached/files/latest/download?source=files) And I have the following error after running the make command: ...
1
vote
2answers
2k views

How to install different versions of memcache with different versions of lampp

I need to use different versions of lampp (xampp for linux). I recently also need to use memcache with any version of lampp I might need to use. Everything is going right if I use the last lampp ...
0
votes
2answers
275 views

Memcache warnings

I have installed memcache on a Dreamhost VPS (Debian GNU/Linux 5.0.9 (lenny) / memcached 1.4.10 ) for a Drupal site . If for some reason the server needs rebooting, memcache is not restarted and ...
13
votes
3answers
85k 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 ...
1
vote
3answers
209 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 ...
1
vote
1answer
1k views

How to debug/fix a php/apache segmentation fault while using memcache (redundant) for session storage?

os: debian squeeze (up2date) 2 apache mod php webserver 2 memcache server i have to apache mod_php nodes which use two memcache server for redundant session storage (used variant 3 from https://...
2
votes
2answers
7k views

Configuring NGINX to work with memcache for reverse_proxy_cache

Is there any way to configure nginx to use memcache for storing cache data, as opposed to using files stored on hard drive?
1
vote
1answer
4k 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 ...
2
votes
1answer
1k views

Hosted fault-tolerant (replicated) memcache solution in amazon ec2 cloud?

does anyone offer a fault-tolerant (replicated) memcache solution that is hosted in amazon ec2, needs zero maintenance and works with providing just one IP? I know that amazon offers ElastiCache. But ...
0
votes
1answer
429 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 ...
6
votes
2answers
5k views

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 ...
0
votes
2answers
1k 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 ...
7
votes
1answer
10k views

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 ...
0
votes
1answer
60 views

Scalable server configuration for dynamic growing social site [closed]

My team is writing (social) website, witch should in theory grow up very fast. My task is to attempt to define the hardware requirements for such a page (for investors). Technology in which we create ...
0
votes
1answer
249 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 pools,...
6
votes
1answer
1k views

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 ...
1
vote
1answer
886 views

Membase nightmare too many connections

We have a group of four web apps (C#, ASP.NET, NHibernate) and a few services that used to share a Northscale instance. We've since upgraded to Membase, at which point we were actually able to start ...
3
votes
1answer
798 views

Best Way to store sessions in a High Availability / High Performance way in Multiple Server Environment

I have an application (Magento) that has an abstracted session storage layer. I'm trying to visualize the best way to store sessions. mysql Database? I'm thinking a dedicated database with a very ...
2
votes
1answer
248 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 ...
1
vote
1answer
1k 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 ...
2
votes
1answer
485 views

Distributing php-session load on a memcache array

Until recently our setup consisted of 4 web-servers sharing sessions to a single server running memcache. We are hosted on Amazon cloud and had a crash at peak load on 2 consecutive days. The problem ...
0
votes
1answer
224 views

Drupal/pressflow VPS set-up

I'm about to port a high traffic website to Drupal v6.x (maybe 7.x) on a VPS. I have a bit of experience with Linux in the name of Ubuntu. Of course I can relay on a managed VPS package. How ever I ...
2
votes
2answers
921 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
2k views

phpMyAdmin displays blank page after installing APC and memcached

I am running a LAMP stack on CentOS 5.6 with PHP 5.3. I had installed phpMyAdmin and it worked. I was able to log in and do anything. Then I installed memcached and its PHP extension as well as APC ...
1
vote
1answer
140 views

Caching functions - fwrite vs memcache

Which will be faster and best option? Page will load faster with fwrite or memcached cached function? I need to store some functions in cache, they will not update very often, so need only to read it. ...
0
votes
1answer
506 views

Memcache - PHP- Ubuntu :: cd: /var/lib/memcache: No such file or directory

I installed memcache PHP module on Ubuntu 10.04 My Steps: install php5-memcache (http://pecl.php.net/package/memcache) restart apache get phpinfo() memcache memcache support enabled Version ...
3
votes
2answers
2k 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 ...
2
votes
1answer
3k views

Diagnosing a Memcache server with a high cache miss rate

What tools are available to debug a memcache server with a high miss rate (62%)? Ideally I would like to know the keys for the top cache misses, but I would just settle for seeing the keys of live ...
3
votes
1answer
1k views

Apache2 Segfault - need help interpreting this coredump (suspect cause is memcache / php session related)

Three Apache2 web servers running a PHP 5.2.3 web site. We're using Memcache to cache rendered pages but also as the storage engine of the PHP Sessions. At peak traffic times we're getting Apache ...
3
votes
3answers
14k views

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 ...
1
vote
2answers
11k views

phpize command not found

I was installing memcache on my Cent OS 5 server and I am following this guide > http://www.howtoforge.com/php_memcache_centos5.0 And now, when I enter, phpize && ./configure --enable-...
6
votes
3answers
9k 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 ...
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 ...
2
votes
1answer
10k views

How to restart memcache? Via SSH

Hey i want to restart memcache so i can downgrade my Memory allocated for Memcache from 350MB to 64MB. I am new with SSH can anyone point me on how to restart Memcache or a way to re-allocate the ...
1
vote
1answer
4k views

best practice with memcache/php - multi memcache nodes

So I am working on a web app - that has to be built for scalability. It stores frequent MySQL querys into the cache. I have pretty much everything built and ready to go - but I am concerned on best ...
0
votes
1answer
1k views

Can't get memcached / php memcache installed on CentOS 5.5

I cannot get memcached installed for the life of me on CentOS 5.5 yum install memcached says package doesn't exist I have tried installing from source, as well as yum. Apparently memcached is ...
0
votes
1answer
2k views

How can i install memcache for PHP 5.2.10 in CentOS 5.5? (not in repo)

i tried installing memcache from another repo and it all went wrong: [root@mail ~]# php -v PHP Warning: PHP Startup: memcache: Unable to initialize module Module compiled with module API=20050922, ...
0
votes
2answers
2k views

Memcached extension error in PHP

yesterday i migrated to Rackspace (CentOS 5.5). Everything was already configured (apache, php, mysql, memcached) and working well. The only thing i forgot, and installed at last was the mail server (...
1
vote
3answers
2k 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 ...
28
votes
3answers
59k views

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 ...
1
vote
1answer
420 views

What do I change in php.ini file so that the sessions are handled in memcache?

I have installed the memcache extension and also memcached. Now what do I need to chance in the php.ini file so that all sessions are handled in memcache?
0
votes
1answer
1k views

Memcache - what's the point when I use Smarty caching?

I've never used memcache but am struggling to see the benefit when I use Smarty caching. The reason I ask is that it says it saves data so as to take load off of the database. Well, I don't run ...