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

5
votes
3answers
875 views

Memcached - one big server vs several smaller ones

I am considering whether we should get one big (48 Gb RAM) server or buy 4 smaller (12Gb RAM) servers for running memcached service. In either case I would also have stand-by spares for redundancy, ...
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
1k 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 ...
0
votes
1answer
372 views

Memcached failing to get data (nuked by expire)

currently I have three different running memcached instances, each one for an environment (dev, test and live) All three environments are running the same memcached version (1.4.5) and configurations ...
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 ...
14
votes
3answers
24k 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 ...
3
votes
2answers
3k views

Launch memcached on server boot?

How can I do this? Im running RedHat x86_64 es5. I heard that a cron job is possible, and some other people talk about a script? Note that my linux server knowledge is very limit, so please be ...
7
votes
3answers
10k views

Memcached memory usage

Is there any command line or php script which returns the memcached total memory usage?
1
vote
3answers
673 views

Launch memcached on boot with cron?

How can I launch memcached on boot?
0
votes
2answers
2k views

memcached and iptables

$m = new Memcached(); $m->addServer('localhost', 11211); Will port 11211 need to be open in IPTables for this to work, or is it bypassed considering it's localhost? sudo iptables -L -n -v output ...
0
votes
1answer
95 views

Jumping into memcached - know any good guides?

I'm looking to get into storing data in memcached and enhance a few areas of my site. I've googled around for guides in PHP and am finding limited or very old articles. There's always the ...
0
votes
1answer
879 views

memcache connections reaching its limit…?

I recently launched my project and had around 2000+ users accessing the application within 10 minutes. I have setup memcache to handle the sessions. What happened was that the server went very slow, ...
0
votes
1answer
164 views

Strategy for caching

I have a 5 dedicated servers each running the same version of an application. I'm looking to massively step up our caching strategy to take some load off MySQL as this is our main bottleneck. All the ...
0
votes
1answer
946 views

Memcached not listening

I installed Membase's memcached distro on Windows 2003 R2 x64, but memcached.exe isn't opening any listening ports (I can see this through the TCP/IP tab in Process Explorer). However, if I copy the ...
0
votes
1answer
222 views

Looking for advice on how to set up membase for a small web app

I am building a small webapp that will initially be hosted on a EC2 Micro instance (which is severely memory-limited, 613Mb RAM). When I set it up it asks for a RAM component into which it will load ...
2
votes
1answer
528 views

Change password in memcached

How do I change/reset the password in a Membase (formerly known as NorthScale) memcached instance?
0
votes
1answer
276 views

After installing memcached, unable to locate memcached.so

I've installed memcached on my ubuntu server (8.04), but after apt-get install memcached and successfully installing it, it does not appear in php.ini. I have tested memcached by doing telnet ...
2
votes
2answers
2k views

php_memcache.dll vc6 X64?

I am running wamp server with php 5.3.0. My efforts running memcached were a fail :( After googeling I found out that the problem is that I need the correct php_memcache.dll which is a vc6 compiled ...
2
votes
7answers
5k views

How to deploy web application for 2 million users?

I've been tasked with figuring out how to do a large scale deployment for a high availability, high traffic, dynamic, flash based web application. There is a good possibility that this application can ...
1
vote
1answer
2k views

How much memory can I safely assign to memcached?

I'm looking into using memcached on our server. We've just upgraded and now have a fairly powerful box: DELL PowerEdge R710 Linux RHEL 5 - 64bit 12GB RAM (We used to be on a 32bit 4GB box). The ...
0
votes
3answers
130 views

How do I see how quickly items are dropping out of memcache?

Is there a good way to monitor how quickly items are dropping out of memcache?
1
vote
1answer
328 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 ...
1
vote
1answer
717 views

Using memcached with upgraded Subversion FSFS repository

Subversion 1.6 release notes suggest that it's possible to use memcached to "cache data of FSFS repositories". Creating a new repository using svnadmin create has a fsfs.conf file within the db/ ...
0
votes
2answers
198 views

memcached installation on LAMP issue

When trying to use memcached in my php script, i get class not found. I am running LAMP on Ubuntu 9.01 and have so far taken the following few steps: apt-get install memcached pecl install Memcache ...
6
votes
3answers
14k views

How to setup Memcached/APC on Ubuntu Server 10.04 for PHP?

I will be soon setting up Simple Machines forum on a fresh Ubuntu Server 10.04 VPS. The forum software is written in PHP. I will using Nginx as the web server, and I will be following a guide to ...
0
votes
1answer
386 views

memcached memory usage difference on 32- and 64-bit

We have a bunch of boxes running memcached. Some are 32-bit and some are 64-bit, but all run a 32-bit install of RHEL due to various Perl-related things. We'll call them type A and B respectively. ...
0
votes
2answers
342 views

Can Memcached limit “write per second” and “read per second” on MySQL?

I need to reduce the value of "write per second" and "read per second" on MySQL (this is for statistics: total views of post). Can Memcached doing this job? Thanks
1
vote
2answers
1k views

high load web server setup

I'm preparing a server setup for a dating website who need to be able to process around 5'000 - 10'000 req/sec to the main site. My idea was to do it this way: Server for static content (css, js, ...
22
votes
5answers
25k views

Can a pool of memcache daemons be used to share sessions more efficiently?

We are moving from a 1 webserver setup to a two webserver setup and I need to start sharing PHP sessions between the two load balanced machines. We already have memcached installed (and started) and ...
0
votes
1answer
200 views

Save server from overload

As my client's php ecommerce portal is on a dedicated hosting but there are certain overload issues. Like the CPU uses goes upto 84% on a 60 req/sec , so i am thinking to propose a plan. To implement ...
4
votes
4answers
2k views

Recommended way to pre-warm memcached?

I am currently testing memcached on a system that will be rebooted once a week, and would therefore like to pre-warm memcached after the reboot. Wondering if anyone has a sample script they have ...
5
votes
3answers
4k views

Nginx & PHP caching: fastcgi_cache, proxy_cache, APC or memcached or combo?

We have webservers running nginx 7.65 along with fastcgi PHP5 and are looking into caching possibilities to speed up content delivery and lower system loads. The servers run different (custom) ...
1
vote
1answer
492 views

Protecting against PHP session DOS attacks

A popular move is to store PHP sessions in memcached. But it seems like this is wide open to an attack - someone could flood the server for new session requests and consume all your memory. What ...
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 ...
0
votes
1answer
115 views

Ubuntu package question

I run Ubuntu, and If i type the following in a terminal, I start a new instance of memcached, right? # memcached -vv How can I target the the current instance of memcached in terminal? It would ...
2
votes
2answers
2k views

What causes memcache to delete keys?

Our memcache install recently started removing keys, and we're not sure why. Large groups of keys vanish at the same time. Memcache reports that evictions are low to non-existent, and our app has no ...
1
vote
3answers
533 views

Is it possible to build a cheap memcached server?

Is it possible to build a cheap memcached server?
1
vote
1answer
2k views

Can't connect to memcached

We currently have memcached running on CentOS. None of our PHP applications can connect, have tried multiple applications trying to establish access. The most informative PHP error we get is: ...
1
vote
2answers
177 views

Site's performance slows over time until Apache is restarted

I'm running a Django app w/ Nginx and Apache. All our static media is stored on S3, and basically it takes a while for the app to check if thumbnails have been created every time a page is loaded. ...
1
vote
3answers
5k views

Debian tuning for increasing read/write buffer

Is there a way to modify Debian settings so the memory could be used more for disk read/write caching ? I am already using RAID 0 but thats not enough for multiple users, and the disk is almost ...
3
votes
1answer
211 views

What is the standard way to deploy memcached?

I have two IIS servers and two MySQL servers. On all servers I have some available memory (More than a GB). What is the standard way to deploy memcached? Should I add a new server especially for ...
0
votes
1answer
190 views

In Nginx, can I handle both a location:url or a content-type: text/html response from memcached?

I'm setting up an nginx - apache reverse proxy where nginx handles the static files and apache the dynamic. I have a search engine and depending on search parameter I either directly forward the ...
0
votes
1answer
968 views

how to configure memcached for weblogic 10.x and oracle 10.g

Have some web app using java, jsp, servlet. too many times frequent queries to oracle 10g under load. Thinking to introduce memcached, Is it simple ? Can it be done without code change? are there any ...
1
vote
2answers
208 views

memcached append() php ubuntu - bad protocol

I am running ubuntu gutsy(7.1) , php5 and I am trying to get memcached running locally. I installed everything as per the docs: memcached daemon, php PECL extension, libevent, etc. But now I can ...
1
vote
2answers
836 views

Problem linking to shared libraries

I've got a problem linking to shared libraries. Specifically this is a nodejs module linking to libmemcached, but I'm guessing the problem is more generic than that. The file it cannot find/open is ...
0
votes
2answers
1k views

Memcached server won't connect

I'm rather new to Unix and am trying to set up a memcached server on Rackspace Cloud Servers with CentOS 5.4. I've been following the guide below. ...
1
vote
1answer
1k views

memcached vs. tmpfs

Are there any advantages of using memcached locally over using a mounted tmpfs? Maybe, when the memory-caching system resides on the same host, it's better to use file hierarchy on tmpfs which gives ...
0
votes
1answer
230 views

Multi-Application Server Environment and Memcached Security

We are looking to integrate Memcached into our infrastructure, but have a security concern before we do. We run several platforms including ASP.NET and Coldfusion and have many app developers working ...
0
votes
1answer
292 views

Key issues reading from memcache pool on ubuntu / solaris

Our environment consists of 6 memcached servers running on Solaris 10 boxes and application code running on a mix of Solaris and Ubuntu servers. We are running into issues accessing data set on one ...
0
votes
1answer
457 views

How to “distribute” memcached?

I know how to install and use memcached on one server. But I heard you can "distribute it"? How does that work, and how can I enable that feature?