Questions tagged [memcache]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
161 views

PHP + Mysql and memcache or phpsessions

I currently manage a game that handles around 8K daily users, the current server setup is VPS: 16GB+8cores+ 160GBSSD. Handles 8K daily users that are generating 600K daily direct calls to the mysql ...
0 votes
1 answer
4k views

Right way to configure memcache

I'm trying to change memcache memory size limit in my CentOS env. I've examined other questions and found out there SHOULD be a file, which is mostly under /etc/sysconfig/memcached and if not I should ...
-1 votes
1 answer
1k views

How to make memcache accessible only from several ip's?

I have 4 load balansed apache servers, that are using one memcache server. I want to make memcache server accessible only from my this 4 servers. How can I do it? Can I write something like this in ...
0 votes
2 answers
1k views

Can memcache invoke a script to reload itself after startup on Ubuntu?

Since memcache stores everything in ram, it will lose its store after a node recovers from failure. Does memcache offer a hook to invoke a script after it starts up? We want that script to do "...
0 votes
2 answers
2k 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 ...
1 vote
1 answer
286 views

Is ECC memory recommended for memcache? [duplicate]

I'm planning to buy new server for memcache/couchbase. Would you recommend using ECC memory for a memcache server, why/why not?
4 votes
1 answer
1k views

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 ...
0 votes
1 answer
931 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 ...
1 vote
1 answer
2k 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://...
1 vote
2 answers
410 views

Memcached - i installed it on centOS and have it running. Will it auto run when i reboot?

I did this: sudo yum install memcached then sudo pecl install memcache then I restarted memcache (which actually only started it) with this: sudo /sbin/service memcached restart i have no ...
1 vote
0 answers
167 views

Is memcache impacting my performence negatively?

I am using pressflow 6 and NewRelic seems to suggest that memcache is infact hurting performance as shown below : My settings.php file : # Varnish reverse proxy on localhost $conf['reverse_proxy'] = ...
2 votes
2 answers
9k 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?
0 votes
1 answer
719 views

Nginx with memcache module fallback to upstreams

I want to use nginx with the memcache module to check my memcache server first then if the key is not found then to fallback to my upstream servers. I see lots of examples of proxing to multiple ...
0 votes
3 answers
886 views

I enabled mem_cache and cache then disabled them, now my apache2 server won't respond

Yikes. I just attempted to enable cache and mem_cache using sudo a2enmod mem_cache and sudo a2enmod cache on my Ubuntu lucid server. Now my apache2 server doesn't respond at all. I tried sudo ...
6 votes
3 answers
651 views

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 ...
2 votes
1 answer
455 views

Memcached memory consumption?

Server info: cPanel / 4GB The conf file as below: #Memory a user -m 128 # default port -p 11211 # user to run daemon nobody/apache/www-data -u nobody # only listen locally -l 127.0.0.1 Does it mean ...
0 votes
2 answers
5k views

How much memory should be allocated to memcache?

How much memory should be allocated to memcache on a small EC2 intance (1.7 GB RAM). The OS is Ubuntu Hardy. Thanks.
0 votes
1 answer
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: ...
3 votes
1 answer
498 views

APC fragmention woes on Apache AWS EC2 Small instance with WordPress and W3TC

AWS EC2 Small instance, Apache 2 running WordPress and W3TC. Within an hour, my APC fragmentation hits 100%. My APC settings are: apc.enabled = 1 apc.shm_segments = 1 apc.shm_size = 100M apc....
0 votes
1 answer
310 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
1 answer
961 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 ...
5 votes
1 answer
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
3 answers
747 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
2 answers
2k 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
2 answers
384 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.
6 votes
3 answers
10k 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
2 answers
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 ...
3 votes
2 answers
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 ...
0 votes
2 answers
309 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 ...
1 vote
2 answers
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 ...
2 votes
1 answer
519 views

Memcache on ubuntu server lucid and ruby 1.9.1

I'm trying to set up a memcache server on the above setup. I'm getting the following error: /var/lib/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:443:in `...
2 votes
1 answer
2k 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 ...
7 votes
1 answer
12k 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 ...
2 votes
1 answer
500 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 ...
1 vote
3 answers
241 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
1 answer
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 ...
0 votes
1 answer
1k 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 ...
0 votes
1 answer
314 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,...
7 votes
2 answers
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
1 answer
63 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 ...
6 votes
1 answer
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
1 answer
917 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 ...
1 vote
1 answer
2k 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 ...
3 votes
1 answer
858 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
1 answer
251 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
1 answer
236 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
2 answers
1k 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
1 answer
196 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. ...
1 vote
3 answers
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 ...
1 vote
3 answers
3k 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 ...