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.

69 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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
3 votes
0 answers
2k views

Memcached fails/crashes every few hours

I have a CentOS 7 server with Memcached. There are a lot of requests, and usually after a few hours, the memcached daemon crashes. I always restart the service, but it crashes again a few hours later. ...
Andres SK's user avatar
  • 238
3 votes
0 answers
1k views

Memcached: Keys being deleted after specific number of items inserted

I'm debugging a php script which is saving data in memcache as a way to warmup an application. This script only makes set calls to save data into memcache, and after a specific number of entries being ...
Pherrymason's user avatar
2 votes
0 answers
390 views

Where/How I declare memcached server's IP with Nginx?

Good day! I have a forum configured with MyBB. Everything was up and running in Ubuntu 14.04, but my friend tried to install 16.04 on it and first saved everything (site's config, letsencrypt files, ...
Alain's user avatar
  • 135
2 votes
0 answers
74 views

Run command before backned is marked as UP in HAProxy

I have to solve this problem. I have two memcache servers (SM1 and SM2) and HAProxy loadbalancer in front of them. HAProxy is configured in active/passive mode, when SM2 has backup command. All ...
Ondra Sniper Flidr's user avatar
2 votes
0 answers
462 views

How to specify the timeout for health check in memcached session manager for tomcat

Basically the setup consists of two tomcat6 and two memcached nodes. memcached session manager version - 1.8.3 (latest release). I'm testing the following scenario: Client logs in into the ...
d3day's user avatar
  • 121
2 votes
0 answers
663 views

What is the right value for memcache.session_redundancy?

The PHP manual for Memcache doesn't have any explanation for the memcache.session_redundancy option. The comment on that page (which is 4 years old) says it sets the number of copies of a session ...
A.Jesin's user avatar
  • 422
2 votes
0 answers
227 views

Port server moxi on node X exited with status Y on Couchbase 1.8.1

I'm getting this error on live servers Win Server 2003 32 bit & 2008 64 bit. Port server moxi on node '[email protected]' exited with status 3. Restarting. Messages: 2012-09-10 17:13:21: (...
scepak's user avatar
  • 21
2 votes
0 answers
281 views

Should we increase local port range limit on busy memcached servers

nixcraft has a tutorial on configuring memcached server(link) at the end says: For busy memcached server you need to increase system file descriptor and IP port limits here is the code to do so: ...
Majid Azimi's user avatar
2 votes
1 answer
164 views

MediaWiki Multi Site + Memcached

I have multiple mediawiki installations, and I'm wondering if it's safe to allow them to all use the same memcached server. Are there any "gotchas" involved?
WedTM's user avatar
  • 301
2 votes
0 answers
642 views

Enyim Memcached Client Caching same item on multiple servers

We have a memecached cluster of 5 servers. When we reviewed the cache keys it shows that the same item is showing up across 4-5 servers in the cluster. As I understand it, Enyim's default key hash ...
John's user avatar
  • 21
1 vote
0 answers
410 views

Squid Cache is not caching anything - TCP_MISS is the result every time, please help me fix the configuration

I am trying to use Squid Cache for the first time. My aim – is that for any HTTP response from 192.168.0.2:3001 is cached and served from the cache. My config is as follows: http_port 3128 acl ...
RenegadeAndy's user avatar
1 vote
0 answers
385 views

Memcached crashes / spikes to 100% CPU with EC2, Nginx

I have a strange issue with PHP 7.4, Nginx, PHP-FPM and Memcached on EC2 Randomly the server will spike from 1% CPU to 100% and continue using everything it can until I reboot it. Rebooting just the ...
Brandon Ingham's user avatar
1 vote
0 answers
909 views

Is it possible to migrate Memcached cluster data to Redis?

I have searched Google and SO and surprisingly haven't been able to find a very good answer to this. Basically, I want to know if there is any sort of method or best practice for migrating cache data ...
jmreicha's user avatar
  • 790
1 vote
0 answers
2k views

nginx/memcached for cached web proxy

I'm trying to setup nginx as a caching layer on top of an HTTP proxy - along with memcached to do the actual caching. The goal here is that we have an internal application which will make frequent ...
Siler's user avatar
  • 379
1 vote
0 answers
307 views

How to setup a security group on AWS that allows incoming traffic only by certain Elastic Beanstalk servers?

we have the following setting on AWS: 8 Elastic Beanstalk environments (4 QA, 4 PROD) read and write data. Typically, 1 environment (the API) always reads data from DynamoDB and RDS and 1 environment (...
marco's user avatar
  • 169
1 vote
0 answers
1k views

PHP Warning: Unknown: Failed to write session data (memcached). Very infrequent

I installed memcached (2.2.0) libmemached (1.0.18) a few weeks ago. (Apache/2.4.10 and PHP 5.5.20), mostly for php session management. Generally I'm really pleased with performance but I notice this ...
williamk's user avatar
  • 133
1 vote
1 answer
753 views

Uneven load distribution on an elasticache cluster

Amazon elasticache cluster looks to be a really good choice for auto-scaling but it seems the load distribution is not equal among the nodes. Both memory and CPU wise the node 1 seems to take almost ...
Ashish Gaurav's user avatar
1 vote
0 answers
240 views

Why is memcache not functioning with elgg in debian 7?

I am moving a php website (built using elgg - www.elgg.org) from a CentOS server to a different Debian 7 server and have installed memcached + php5-memcache on both. I have recreated all the ...
tunist's user avatar
  • 53
1 vote
1 answer
969 views

Different memcached instance per user, with authentication

I am writing a script which will allow each and every cPanel user to run an instance of memcached on their own. The script at this point is starting the daemon for every user on a different port. ...
Simeon Mitev's user avatar
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'] = ...
iTech's user avatar
  • 355
1 vote
0 answers
848 views

Memcached and repcached not replicating 2 master servers

I have memcached-1.2.8-repcached-2.2 installed on memcached on centos. They install went great and when i start memcached i get: replication: connect (peer=192.168.1.2:11212) replication: marugoto ...
Joe's user avatar
  • 11
1 vote
0 answers
503 views

repcached broken sync - memcached high avalaibility

I have been using repcached (memcached-1.2.8-repcached-2.2)to store php sessions in order to have a highly available memcached. Everything runs perfect, I can restart a daemon without losing sessions. ...
A4A's user avatar
  • 78
1 vote
1 answer
558 views

My ubuntu server can ping and ssh can connect, but ssh can't do the authuncation and halt

I have two ubuntu server. Each running php-cgi by phpfpm, memcached, mongodb. And these servers are not running in a high load state. After running several days. The server will halt. No service and ...
Magic's user avatar
  • 155
1 vote
1 answer
366 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 ...
Nikhil's user avatar
  • 115
1 vote
1 answer
261 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 ...
awongh's user avatar
  • 111
0 votes
1 answer
174 views

Error Installing Memcached with Plesk Ubuntu Server

We are working on getting a new Ubuntu Plesk server running with memcached and keep running into errors when setting it up for PHP. Using the instructions from Plesk we run the following successfully: ...
Jason C's user avatar
0 votes
1 answer
372 views

Clear RAM Memory Cache and buffer on production Hadoop cluster with HDFS filesystem

we have Hadoop cluster with 265 Linux RHEL machines. from total 265 machines, we have 230 data nodes machines with HDFS filesystem. total memory on each data-node is 128G and we run many spark ...
King David's user avatar
0 votes
1 answer
142 views

How to install memcashed on a LAMP stack with PHP FPM?

I have a LAMP stack with PHP FPM and multiple virtual hosts with Wordpress sites on. I have tried to install memcashed using this tutorial. In Wordpress sitehealth I get: "You should use a ...
newcat1000's user avatar
0 votes
0 answers
82 views

how to monitor number of "add" commands on memcached

so memcached provides a lot of stats to track usage (hits and misses). sample output - stats STAT pid 1 STAT uptime 982226 STAT time 1630949306 STAT version 1.6.6 STAT libevent 2.0.21-stable STAT ...
mirage's user avatar
  • 221
0 votes
0 answers
767 views

Confusion with memcache size increase

I'm facing issues with my memcache recently as we received lot of data requests. So, I used telnet command to get some stats around the memcache. For the production environment, I saw that there are ...
Priyanka Naik's user avatar
0 votes
0 answers
538 views

Getting 499 status from nginx log upto 2 minutes in every 3 hours interval, when memcache restarts

I have two Application servers served by an another haproxy load balancer server. The application servers are connected with a memcache server and a mysql database server. I am observing in every 3 ...
Md. Shahriar Hossain's user avatar
0 votes
1 answer
711 views

Apache2 reverse proxy with response caching

I'm using Apache as a reverse proxy for an application running on a local port. I want to cache responses from this application in memory. So requesting the same URL frequently should give me cached ...
kontextify's user avatar
0 votes
1 answer
431 views

Why can't I lower the item size in memcached (anymore)?

I'm running memcached and recently upgraded to the latest Debian release. I'm not sure what version of memcached I had before, but the new one doesn't like this configuration setting I had in the past:...
Christopher Schultz's user avatar
0 votes
1 answer
493 views

AWS Apache 2.4 + socache/memcache == not storing

Fleet of Apache 2.4 reverse proxies on an AWS EC2 instance, directed to cache to an ElastiCache memcache cluster. Pretty typical stuff. The CacheDetailHeader directive is on, and regularly sends the ...
GraduateOfAcmeU's user avatar
0 votes
1 answer
333 views

Memcache build error on CentOS

I have a problem installing "Pterodactyl Panel" on Centos 7. I am stuck at the line "pecl install memcache". The errors are shown below: [root@localhost ~]# pecl install memcache WARNING: channel "...
amiaz pes's user avatar
0 votes
1 answer
1k views

Memcached fails after a few hours of usage

I just installed CentOS 7, with Apache 2, PHP 5.6. I also installed memcached, but it keeps failing after a few hours of usage, so I have to restart it at least 3 times a day. [root@myserver log]# ...
Andres SK's user avatar
  • 238
0 votes
0 answers
1k views

Memcached servers keeps failing

Everyday I get an error email from my python flask app with the following error: WriteError: error 5 from memcached_set: (54648992) SERVER HAS FAILED AND IS DISABLED UNTIL TIMED RETRY, host: 127.0.0....
TheOne's user avatar
  • 605
0 votes
1 answer
968 views

memcached on RedHat build PHP 5.6

I am trying to setup memcached on a server running RedHat PHP 5.6.25 I have successfully installed memcache but cannot find how to install memcached - is there a package available? If not how can I ...
bhttoan's user avatar
  • 650
0 votes
0 answers
78 views

Memcache , python client doesnt distribute the keys among all of the servers in the pool

I have 7 webservers with 64gb of ram each, I want to make use some of this 64 gb of ram with memcached, so I assigned 30gb to memcache in each webservers and added all of the 7 servers to the memcache ...
SteveL's user avatar
  • 167
0 votes
0 answers
775 views

Connect Nginx Load Balancer with Memcache server

I m using Nginx as Load balancer with ngx_http_memcached_module and I installed a Memcached Server that I would like to connect it with Nginx to make it obtain responses from a Memcached server. Load ...
Dolomats's user avatar
0 votes
0 answers
211 views

build memcached source on centos6.4 64bit fails

I'd like to build memcached from source on centos 6.4 x86_64 but only get following error. checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu ...
Chuck's user avatar
  • 131
0 votes
1 answer
3k views

Configuring MAXITEMSIZE in memcached in gentoo

Got memcached up and running (emerged net-misc/memcached) but on PHP I'm getting Server 127.0.0.1 (tcp 35817, udp 0) failed with: SERVER_ERROR object too large for cache I'm thus trying to change ...
Collector's user avatar
0 votes
0 answers
209 views

Counterintuitive drop in CPU

I am running a memcached service in a linux container pinned to a specific physical core. As expected the CPU increases when the number of requests increase. The requests are sent from a workload ...
Voldermot's user avatar
0 votes
0 answers
653 views

Increased CPU usage and server response time

Over the past 10 days, I'm suddenly experiencing increased CPU usage on my website with CPU usage reaching 100% three times. During that time I'm unable to SSH to my website so I haven't been able to ...
Yin Yang's user avatar
  • 273
0 votes
1 answer
1k views

Is it possible to force a specific program to use virtual memory?

Let say I have 1GB RAM Ubuntu, I need to run both memcached and redis on the same machine The usage of memcached is quite heavy (e.g. 1K read per second) and redis is less heavy (but still 10 read ...
Ryan's user avatar
  • 5,981
0 votes
0 answers
282 views

memcached available, but not installed and unable to uninstall, but run in process

I installed memcached in my cent OS VPS. Somehow it's not work as i expected and now I switched to suPHP. But when I run 'top' command I can see 'memcached' run as a nobody user. 1727 nobody 20 ...
MaxBro57's user avatar
0 votes
2 answers
1k views

nginx returning error 502 when get not exist key on memcached

I use nginx 1.2.3(php-fpm) php 5.4.7 pecl memcached 2.1.0 memcached 1.4.15 If memcached service stops or gets a not found key, nginx returns 502 error and in error_log I see: 2013/11/19 17:37:04 [...
ooghry's user avatar
  • 1
0 votes
1 answer
1k views

Memcached inconsistency in values for maxbytes and limit_maxbytes

I'm using Memcached on RHEL/CentOS 5/6 and found that memory size inconsistency between limit_maxbytes and maxbytes taken from "stats" and "stats settings" respectively. I have compiled memcached-1.4....
Hirantha's user avatar
0 votes
2 answers
392 views

Can't get Memcached to use more than 300 MB for cache

I installed Memcached on a Debian 7 server with 32 GB of ram. In my /etc/memcached.conf file I have it set up to use up to 4 GB of ram: -m 4000 Yet, whenever I run 'top' I always see memcached using ...
Joseph Pellegrin's user avatar