2022 Developer Survey is open! Take survey.

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
0 answers
16 views

Memcached throws errors when using it as session handler

We are trying to use Memcached (1.5.22) as a session handler on a server with Apache + PHP 7.4, however, we have observed random errors with the message below: session_start(): Failed to read session ...
user avatar
  • 217
0 votes
1 answer
27 views

How to telnet to a unix socket in debian to test memcached

To test memcached on Ubuntu, I would run this command: echo "stats settings" | nc -U /run/mydir/memcached.sock However now I have changed to Debian, and Debian nc does not support the -U ...
user avatar
0 votes
0 answers
18 views

systemctl startup with dependencies

I am implementing a highly available memcached service. Since memcached does not persist data, when an instance starts up, I want to seed its data from a running instance. Hence the startup (in pseudo ...
user avatar
  • 19.9k
0 votes
1 answer
32 views

How to update memcached to 1.4.33 on centos? Yum says there is no update

I need to update memcached on centos7 from 1.4.15 to 1.4.33 however yum update says there isn't anything to update, clearly there is as there is a newer version. I can't find anything on google ...
user avatar
  • 5
0 votes
0 answers
48 views

Can memcached flush_all command only operate on part of the distributed memcached memory pool?

I have a Drupal site with a provider that operates off one of two servers (with balancers in front of that). Each server has an allocation of memory that is assigned to memcached, and the Drupal site ...
user avatar
  • 1
0 votes
1 answer
233 views

Error with memcache memcached php 7.4

The Server have this Error: PHP Startup: Unable to load dynamic library 'memcached.so' (tried: /usr/lib/php/20190902/memcached.so (/usr/lib/php/20190902/memcached.so: undefined symbol: ...
user avatar
0 votes
0 answers
32 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 ...
user avatar
  • 221
3 votes
1 answer
941 views

The memcache was not invalidated by NSS responder

I was deleting a user. # userdel u1 The memcache was not invalidated by nss responder. But finally the user was deleted. What does "The memcache was not invalidated by nss responder" means? ...
user avatar
4 votes
2 answers
837 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 ...
user avatar
0 votes
1 answer
149 views

How to remove apcu and memcached from centos?

I've always installed apcu and memcached on my server, but I'm not sure how useful they are. Mostly 2-3 pages per visit are visited on my sites. And I'm not even sure if having them is a good thing or ...
user avatar
  • 67
0 votes
0 answers
36 views

Do you usually need to scale memcached for memory reasons or performance reasons?

I use memcached on AWS Elasticache, at the moment I run one node only. The node has around 5% CPU usage on average and plenty of free memory. I was wondering, out of curiosity: what is the point of ...
user avatar
0 votes
1 answer
84 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=...
user avatar
0 votes
1 answer
197 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 ...
user avatar
  • 103
1 vote
0 answers
183 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 ...
user avatar
1 vote
2 answers
536 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')) { ...
user avatar
  • 11
0 votes
0 answers
344 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 ...
user avatar
0 votes
1 answer
73 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 ...
user avatar
0 votes
0 answers
165 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 ...
user avatar
0 votes
1 answer
251 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....
user avatar
0 votes
1 answer
2k 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 ...
user avatar
0 votes
1 answer
337 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 ...
user avatar
2 votes
0 answers
856 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. ...
user avatar
  • 228
0 votes
1 answer
219 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 ...
user avatar
0 votes
1 answer
258 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 ...
user avatar
1 vote
1 answer
855 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....
user avatar
  • 125
0 votes
1 answer
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'] = '...
user avatar
  • 229
0 votes
1 answer
144 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:...
user avatar
1 vote
2 answers
4k 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 ...
user avatar
  • 5,034
3 votes
1 answer
10k 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 ...
user avatar
0 votes
1 answer
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 ...
user avatar
1 vote
1 answer
2k 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 ...
user avatar
0 votes
1 answer
337 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 ...
user avatar
1 vote
1 answer
5k 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 ...
user avatar
  • 228
0 votes
1 answer
355 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 ...
user avatar
0 votes
1 answer
298 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 "...
user avatar
2 votes
0 answers
257 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, ...
user avatar
0 votes
1 answer
917 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]# ...
user avatar
  • 228
0 votes
0 answers
663 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....
user avatar
  • 595
0 votes
1 answer
839 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 ...
user avatar
  • 620
0 votes
0 answers
72 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 ...
user avatar
  • 167
1 vote
0 answers
796 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 ...
user avatar
  • 791
0 votes
1 answer
815 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 (...
user avatar
  • 125
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 ...
user avatar
  • 349
0 votes
0 answers
657 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 ...
user avatar
1 vote
1 answer
3k views

Memcached Object Too Large

In my memcahced configuration I have PORT="11211" ...
user avatar
  • 399
2 votes
0 answers
61 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 ...
user avatar
3 votes
0 answers
861 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 ...
user avatar
0 votes
2 answers
1k 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 ...
user avatar
  • 479
0 votes
1 answer
373 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 ...
user avatar
-1 votes
1 answer
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 ...
user avatar

1
2 3 4 5
8