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
0
votes
0answers
9 views

Understanding my Memacached memory usage in a Rails app (versus what AWS says)

I have a Rails app running on AWS, and in AWS I have a Memcached ElastiCache node of type cache.m3.medium (3GB memory, moderate network performance). When I look at the Unused Memory graph I see that ...
0
votes
0answers
14 views

What cdn or cache modifies max-age dynamically as content ages?

I am trying to determine what is caching web page responses within the server infrastructure in a transparent cache like behaviour. The cache header defined by the origin server is fixed one hour (...
0
votes
0answers
28 views

dovecot + memcached, how to?

Does anyone know how to utilize memcached with dovecot (in order to reduce number of MySQL queries)? There is only very basic documentation regarding dovecot's Dictionary: memcached:param=value:param2=...
0
votes
1answer
52 views

How to set MEMCACHED_SERVERS environmental variable for memcstat

I've installed memcached and libmemcached-tools on ubuntu 18.04. Both of these commands work: memcstat --servers=localhost memcstat --servers=127.0.0.1 But in the man page for memcstat it says: You ...
0
votes
0answers
16 views

Can I duplicate .user.ini functionality using virtual hosts? “auto_prepend_file” not supported in virtual hosts with PHP FPM

I'm moving from PHP 5.2 and Apache 2.2 with mod_php to Apache 2.4 and PHP 8 with PHP FPM. I was using auto_prepend_file and auto_append_file in virtual hosts to implement Memcached in certain ...
1
vote
0answers
55 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 ...
1
vote
0answers
202 views

Memcached error: SERVER HAS FAILED AND IS DISABLED UNTIL TIMED RETRY

Here is my test code: $host = 'localhost'; $port = '11211'; if (extension_loaded('memcached')) { $mc = new Memcached; $mc->addServer($host, $port); if ($mc->set('test', 'TEST')) { ...
0
votes
0answers
149 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 ...
0
votes
0answers
43 views

Preserve JSESSIONID in Apache + Tomcat + Memcached

I am trying to create an environment for my application with high availability. So I'm using Apache 2.4 as a WebServer / ReverseProxy, Tomcat 8.5 as an application server and Memcached as a session ...
0
votes
0answers
38 views

Drupal website loads slow until memcache is flushed

Drupal with memcache configured loads slow which takes around 8s to load. After flushing the cache using telnet there is a miss on the first load and the subsequent requests hits the cache and page ...
0
votes
1answer
40 views

Fast access to a hash set in Varnish

I am developing a Varnish pipeline that serves a mix of public and restricted resources. Since access to public resources makes up the vast majority (>99.9%) of the traffic, I want to create ...
0
votes
0answers
35 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 ...
0
votes
1answer
149 views

I have a lot of traffic and only 1 server best config for nginx/varnish/apache configuration

I have a lot of traffic and only 1 server can I get some help with configuration Nginx.conf config: # For more information on configuration, see: # * Official English Documentation: http://nginx....
0
votes
1answer
1k views

memcache container: Error starting userland proxy: listen tcp 0.0.0.0:11211: bind: address already in use

I am having problems setting up memcached on my docker. I get an error when I run: docker run --name=memcache -p 11211:11211 -d memcached memcached -m 128 This is the error that comes after running ...
0
votes
1answer
126 views

Memcached not working in PHP file but working on SSH - CentOS

On my CentOS 7, Memcached is running and working on SSH but not working in the PHP file. I've followed this article: https://www.mynotepaper.com/install-memcached-on-centos-7. This method was working ...
2
votes
0answers
433 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. ...
0
votes
1answer
148 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 ...
0
votes
1answer
151 views

Memcached stops responding after a few seconds

I'm having troubles with my memcached (v1.5.13) instance. It starts just fine but after a few seconds it becomes non responsive. I'm on a currently updated arch-linux box trying to access it just from ...
1
vote
1answer
693 views

Issue with the Memcached redundancy

I was asked to setup a Memcached server on two servers (one on each). For the records, I run PHP 5.6.5. Here is my setup: memcached.ini: extension=memcached.so memcache.allow_failover=1 memcache....
0
votes
1answer
1k views

Roundcube 1.3.8 + Memcached + PHP 7.3

I'm testing out moving my Roundcube 1.3.8 install over to php 7.3. It's load balanced and I have been using memcache for session storage with php 5 without any issues: $config['session_storage'] = '...
0
votes
1answer
101 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:...
1
vote
2answers
3k views

helm install a chart and give parameters to the depencie chart

I am trying to use the chart stable/mcrouter for memcache sharding, everything works, but this chart uses a memcache chat as dependencie. I would like to know if I can pass parameters to memcache ...
3
votes
1answer
8k views

PHP's MemcacheD extension DLL for Windows

On my PHP 5.6 site I have been using the Memcache extension to interface with the memcached daemon. As the extension has a matching DLL, it meant I could deploy it on my Windows dev machine as well ...
0
votes
1answer
2k views

How to tune memcached service [duplicate]

I am new to server management and earlier I used shared hosting and thought to go for VPS and get more for my websites. VPS specs: RAM: 12GB CPU: 4 Core Intel E5 SSD: 300GB Server: Apache OS: Ubuntu ...
1
vote
1answer
1k views

Why do free -m and htop show different amounts of total memory?

When I run free -m, I get different data from when I use htop. free -m: total used free shared buff/cache available Mem: 992 396 149 ...
0
votes
1answer
270 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 ...
1
vote
1answer
4k views

Allowing remote connection of memcache server

My memcache server is up and running on Server A. service memcached start memcached -d -u nobody -m 512 -p 11211 127.0.0.1 chkconfig --list | grep memcache chkconfig memcached on I also have a web ...
0
votes
1answer
314 views

Memcached doesn't seem to use RAM

I am new to memcached but have installed and am using it for an application. My application reports that it should have a few hundred thousand items cached, however memcached says it only has ...
0
votes
1answer
251 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 "...
2
votes
0answers
190 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, ...
0
votes
1answer
762 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]# ...
0
votes
0answers
510 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....
0
votes
1answer
777 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 ...
0
votes
0answers
71 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 ...
1
vote
0answers
725 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 ...
0
votes
1answer
758 views

How to use PHP memcached for session storage with Auto Scaling?

I already have memcached installed in my servers and I've modified the default php.ini to: session.save_handler = memcached session.save_path = "127.0.0.1:11211" I'm using Amazon EC2 instances (...
1
vote
0answers
1k 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 ...
0
votes
0answers
563 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 ...
1
vote
1answer
2k views

Memcached Object Too Large

In my memcahced configuration I have PORT="11211" ...
2
votes
0answers
60 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 ...
3
votes
0answers
739 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 ...
0
votes
2answers
943 views

APC or Memcached - Nginx php-fpm wordpress

I am using a wordpress installation on Ubuntu 16 Nginx Php-fpm (latest version) I intend to use W3 total cache for caching purposes and was wondering whether I should be going for Memcached or APC ...
0
votes
1answer
290 views

How to tell if memcache was flushed programatically?

How can I tell if memcache was flushed programatically? If I issues a echo flush_all | netcat localhost 11211 to memcache how can I tell it actually worked? I am writing some code to flush all ...
-1
votes
1answer
1k views

why memcached server running slow for my case

I am usiing memcached for html caching for my project but it take too much time to retrieving data and responding. Server stats: 8 GB RAM, centos, php client Here is my setting : echo "stats ...
0
votes
2answers
75 views

Centos 6.8 memcached not found

Installed latest version of memcached(1.4.28) with these instructions: wget http://memcached.googlecode.com/files/memcached-1.4.13.tar.gz tar -xzf memcached-1.4.13.tar.gz cd memcached-1.4.13 ./...
0
votes
1answer
2k views

Different Local Values and Master Values for PHP Session settings

I have configured PHP 5.4.16 (cli) (built: Jun 23 2015 21:17:27) on Centos7.0 to use memcached for session handling. [Session] ; Handler used to store/retrieve data. ; http://php.net/session.save-...
1
vote
1answer
6k views

How to install “memcached” to php 5.6?

I had installed PHP 5.6.20 from this source. https://webtatic.com/packages/php56/ But I cannot install memcached. Just only memcache. How to install memcached to PHP 5.6? This is what i tried. [...
0
votes
2answers
641 views

SSH Tunnel to Memcached not working

I have created a SSH Tunnel to my memcached server as follows: ssh -f -N user@56.55.55.56 -L 11211:127.0.0.1:11211 When i do netstat on my machine i get the following: So far looks good. tcp ...
1
vote
1answer
1k views

Is there a memcached memory limit best practice?

Is there a best practice or general rule of thumb when setting the memory limit for memcached? I'm currently running memcached with the default memory limit of 64 megabytes. The server has 8 ...
0
votes
1answer
404 views

Troubleshooting with php7 and memcached

I want to install memcached with php7, so I downloaded the actual php7.0-memcached package from the dotdeb repository. But it doesn't work: I get following error in the nginx error files when I want ...

1
2 3 4 5
8