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.

Filter by
Sorted by
Tagged with
76 votes
9 answers
72k views

memcache vs memcached?

I want to use memcached http://www.danga.com/memcached/ I have installed it through yum install memcached But now I need to connect to PHP, and there is an extension named memcache and one named ...
thanksyo's user avatar
  • 839
57 votes
8 answers
153k views

how to restart/clear memcache without restarting the whole web server?

/opt/eduserver/eduserver gives me options: Usage: /opt/eduserver/eduserver {start|stop|startphp|startwww|startooo|stopphp|stopwww|stopooo|restartphp|restartwww|restartooo|status|restart|reload|...
Radek's user avatar
  • 1,153
45 votes
7 answers
64k views

View content of memcached

Are there any tools to explore what is currently cached inside a memcached pool? Not some much graphs, but the actual key/values currently stored.
Tom's user avatar
  • 766
43 votes
6 answers
38k views

Which PHP (opcode) cache one should use and why?

I keep hearing about some PHP (opcode) caches like - APC, XCache, Memcache, eAccelerator, etc. But I couldn't ever figure out how to go about choosing one. Apart from performance benefit, which a ...
rahul286's user avatar
  • 1,657
41 votes
1 answer
142k views

What does "<service_name> dead but subsys locked" mean?

I'm trying to run memcached on a centos box and it runs for a while, but then ends up in this state: memcached dead but subsys locked netstat shows this: tcp 0 0 :::11211 ...
Nick Brosnahan's user avatar
32 votes
3 answers
75k 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 ...
Peter Johansson's user avatar
25 votes
5 answers
32k 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 ...
Tom's user avatar
  • 4,367
24 votes
5 answers
45k views

Memcached memory usage

Is there any command line or php script which returns the memcached total memory usage?
Maximus's user avatar
  • 355
18 votes
3 answers
9k views

Unexpected(?) high 'wasted' memory in memcached

Updated, see bottom of the longish (sorry) question. Looking at our memcached stats I think I have found an issue I was not aware of before. It seems that we have a strangely high amount of wasted ...
Nanne's user avatar
  • 622
17 votes
2 answers
17k views

Add vs Set in Memcached

I don't understand the difference between ADD and SET Any clues? It seems as if ADD includes SET or that ADD returns false if something is there and SET just overwrites. Thanks! EDIT: My specific ...
user851171's user avatar
17 votes
1 answer
64k views

Failed to connect to memcache host !

I'm totally new to memcached ! I sucessfully Installed and started memcached with this command in my host A (Ip 192.168.1.102) memcached -u memcached -d -m 30 -l 127.0.0.1 -p 11211 I also add these ...
billyduc's user avatar
  • 1,627
16 votes
3 answers
110k 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 ...
PatrickS's user avatar
  • 360
16 votes
5 answers
32k views

How to set up memcached to use unix socket?

While I could use memcached on Debian to use the default 11211 port, but I've had great difficulty setting up Unix socket. From what I've read, I know that I need to create a memcache.socket and add: ...
alfish's user avatar
  • 3,147
14 votes
1 answer
19k views

How is memcache distributed?

I've got memcache running on 5 web servers all of which are on the host list in php and which are load balanced on the front end. So since memcached is supposed to be distributed the php client will ...
Mike's user avatar
  • 143
14 votes
4 answers
5k views

How well do nginx and memcached work together?

We have a Java EE-based web application running on a Glassfish app server cluster. The incoming traffic will mainly be RESTful requests for XML-based representations of our application resources, but ...
Jim Ferrans's user avatar
12 votes
5 answers
26k views

Netcat (nc) traditional package for RHEL 6.x?

I'm trying to use the Percona Apache Monitoring [Cacti] Template for Memcached. They do indeed warn that you can't use the openbsd version of the package and provide a solution for Ubuntu/Debian ...
HTTP500's user avatar
  • 4,843
9 votes
2 answers
15k views

Memcached listen on selected interfaces

I am setting up Memcached on a Debian server that has two interfaces - eth0 (public) and eth1 (private). I want Memcached to listen on both eth1 and lo (loopback) so that it can be accessed even if ...
A.Jesin's user avatar
  • 422
9 votes
4 answers
24k views

How to debug memcached "SERVER HAS FAILED AND IS DISABLED UNTIL TIMED RETRY" errors?

I have a two server memcached setup. When memcached write fails, I receive an email notification. About once per day "SERVER HAS FAILED AND IS DISABLED UNTIL TIMED RETRY" error comes and I have no ...
Jevgenij Evll's user avatar
9 votes
8 answers
33k views

Unable to load memcache.so extension

I built PHP from source with configure command './configure' '--prefix=/usr/local/php-5.2.8' '--with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d' '--with-apxs2=/usr/local/httpd/bin/...
billyduc's user avatar
  • 1,627
8 votes
3 answers
4k views

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 ...
CourtDemone's user avatar
7 votes
5 answers
34k views

How to specify the log file for memcached on RHEL / CentOS

I'm running memcached 1.4.5 on RHEL5.5. I installed this using yum which has installed the standard memcached script in /etc/init.d and the configuration file in /etc/sysconfig/memcached: PORT="...
Olly's user avatar
  • 185
7 votes
1 answer
3k views

How do I monitor memcached evictions?

How do I monitor memcached to know if / how many evictions are occurring, and how much memory is used/free.
philfreo's user avatar
  • 997
7 votes
1 answer
3k views

Having problems with maintaining sessions across multiple Amazon EC2 instances

One of my sites is hosted via Amazon EC2 service. The problem starts happening when the site faces a heavy load which in turn spawns a new EC2 instance via AutoScaling. This is good but the issue is ...
Chantz's user avatar
  • 215
6 votes
3 answers
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 ...
littlejim84's user avatar
6 votes
5 answers
4k 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 ...
user avatar
6 votes
7 answers
22k views

Slow Memcached: Average 10ms memcached `get`

We're using Newrelic to measure our Python/Django application performance. Newrelic is reporting that across our system "Memcached" is taking an average of 12ms to respond to commands. Drilling down ...
Chris W.'s user avatar
  • 103
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 ...
p4guru's user avatar
  • 963
6 votes
1 answer
5k views

Memcached keeps increasing cpu ussage

I'm running a memcached server which is serving two front end servers. These are connecting to the memcached server from Apache2/PHP using the standard PECL library. For some reason the memcached on ...
filo891's user avatar
  • 81
6 votes
1 answer
2k views

PHP Session Storage in Fault Tolerant Memcached Pool

I recently had the opportunity to move a web application from using a Nginx proxy "loadbalancer" to an F5 loadbalancer. Unfortunately during that migration it became clear that the memcached session ...
Joe's user avatar
  • 514
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 ...
Brad Dwyer's user avatar
5 votes
3 answers
13k views

Yum install php-pecl-memcached - No package found (Have epel-release-6-8.noarch.rpm)

I believed I've downloaded and updated the EPEL rpm but I can't install php-pecl-memcached.. I'm very new to this, any help is appreciated. #rpm -Uvh epel-release-6-8.noarch.rpm warning: epel-release-...
Jeff's user avatar
  • 53
5 votes
2 answers
51k views

Connecting to memcached "which port should use?" (php)

I've installed memcached perfectly and I have created a new instance but i don't understand if I'm connecting to the right port... I always get a false return from get(key) Here is my code: $...
user851171's user avatar
5 votes
1 answer
2k views

How is distributed memcached supposed to increase performance if it's making network calls?

http://memcached.org/about Greetings all, I love memcached but have thus far only used it in single machine setups as a local cache. I have read extensively about memcached's distributed nature and ...
K J's user avatar
  • 53
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 ...
Sparsh Gupta's user avatar
  • 1,147
5 votes
6 answers
5k views

Dividing memcached between sites?

If I end up having 4 or 5 medium sites on one server, I want to be sure that each one that requires memcached has at least an allotted space. Is there a simple way to do this? The only ways that come ...
Matthew's user avatar
  • 1,917
5 votes
4 answers
6k 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) ...
Matt's user avatar
  • 295
5 votes
2 answers
3k views

Are there any drawbacks to running memcached on a Unix domain socket instead of the network (assuming one server)?

I’m setting up a Django website to use memcached to cache its pages. (The content of each page won’t change very often at all, so I’m hoping that most of the site will be served from memcached most ...
Paul D. Waite's user avatar
5 votes
2 answers
7k views

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 -...
Utku Dalmaz's user avatar
  • 1,359
5 votes
2 answers
1k views

Memcached scaling strategy

Currently I am running a production environment with 4 dedicated memcached servers, each of them having 48Gb of RAM (42 dedicated to memcache). Right now they are doing fine, but traffic and content ...
danakim's user avatar
  • 402
5 votes
3 answers
1k 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, ...
Andrey's user avatar
  • 354
4 votes
2 answers
4k views

memcached support requires libmemcached

We've configured a Dockerfile containing the following code snippet: ENV MEMCACHE_VERSION=8.0 \ MEMCACHED_VERSION=3.2.0 ############## END ENVIRONMENT VARIABLES ############### ###################...
IT-Girl's user avatar
  • 143
4 votes
2 answers
1k views

Can I use apache2 and memcache in same server?

I am really new to server development. I have a server (Server version: Apache/2.4.41 (Ubuntu)) for Django and it's running on apache2. I want to use Memcache for a large queryset. I just wanna use ...
Murat Demir's user avatar
4 votes
1 answer
5k views

Confused about caching solution: MemCache, Varnished, mod_cache, else?

I have a very heavy site in my server. The load of the server is always about 30-50 and sometimes it become even 150 and server work really hard. I'm looking for a caching solution that can increase ...
bman's user avatar
  • 219
4 votes
1 answer
9k views

How to secure memcached?

In Debian, I have installed memcached (using this guide) to lower the otherwise unmanageable load on mysql database. The database is on a separate server, and memcached and Varnish are on the front ...
alfish's user avatar
  • 3,147
4 votes
3 answers
9k views

Memcached and php error

I have install memcached and when I try a script test like this one : $memcache = new Memcache; $memcache->connect('127.0.0.1', 11211); echo $memcache->getVersion(); I recive the nest error : ...
bejan corneliu's user avatar
4 votes
2 answers
2k views

Does Memcached support IPv6

Has anyone used Memcached with IPv6? Can you provide any configuration tips, gotchas, or mention any stability issues you've had?
amateur barista's user avatar
4 votes
2 answers
7k views

How to replicate Memcache data among servers

A same question in SO can be found from here . But since I couldn't find any suitable answer, I am asking with additional info. I have many memcache clients but all of them access one memcache server ...
Débora's user avatar
  • 157
4 votes
5 answers
28k views

Memcached problems "failed to listen on TCP port 11211"

I just installed memcached on my Mac OS X 10.6.8. It installed perfectly and when I type in memcached in Terminal I get this: failed to listen on TCP port 11211 tcp listen: Address already in use ...
MacMac's user avatar
  • 2,131
4 votes
1 answer
3k views

Does a growing number of TIME_WAIT connections affect server performance?

I have 2 servers, both running RHEL 6, one for Apache 2.2 and one for memcached (memcached-1.4.4-3). I noticed an increase in the number of TIME_WAIT connections on the Apache server netstat -n | ...
user161834's user avatar
4 votes
1 answer
4k views

Memcached cache doesn't flush

I would like to flush the memcached cache keys and values on my centos server. I have tried the telnet approach by telnetting to the port and then issuing: flush_all It doesn't work an my values are ...
petey's user avatar
  • 572

1
2 3 4 5
8