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 settings” | nc localhost 11211 STAT maxbytes 1073741824 STAT maxconns 1024 STAT tcpport 11211 STAT udpport 11211 STAT inter … Read more

Install memcache php ext on php 5.6

I have php 5.6.6 installed on Amazon Linux. I want to install memcache extension (not memcached server, we use Elasticache). I try # yum install php-pecl-memcache.x86_64 And get the following error: Error: php56-common conflicts with php-common-5.3.29-1.7.amzn1.x86_64 So, is there any way to install memcache for my php 5.6 extension? If not, what should I do? … Read more

HTTP 405 Submitting WordPress comments (Nginx/PHP-FPM/Memcached)

I just realized that the comments are broken on a WordPress site I’m working on (LEMP+memcached), and can’t figure out why. I’m sure it’s not related to my theme nor any plugins. Basically, anyone tries to submit a comment, nginx gets stuck on the wp-comments-post.php with an HTTP 405 error instead of fulfilling the POST … Read more

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]# systemctl status memcached ● memcached.service – Memcached Loaded: loaded (/usr/lib/systemd/system/memcached.service; enabled; vendor preset: disabled) Active: failed (Result: … Read more

Error: Package: libmemcached-opt-libs Requires: libevent2

When I try to run yum update it says libmemcached-opt-libs requires libevent2 but I couldn’t find how to install libevent2. When I try yum install libevent2 I get No package libevent2 available message. Does Anyone has similiar issue on libmemcache update ? [root@XXXX ec2-user]# yum update Loaded plugins: priorities, update-motd, upgrade-helper 1404 packages excluded due … Read more

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 fine on my previous server. I’ve tested Memcached using telnet. It works fine. $ telnet 127.0.0.1 11211 Trying 127.0.0.1… Connected to 127.0.0.1. Escape character is ‘^]’. set test … Read more

PHP memory size exhausted in drupal

FastCGI sent in stderr: “PHP message: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 137612647 bytes) Already I increase 2 times in php.ini file. But again memory size exhausted happening. And also I got following error /app/source_code_shop/shop/sites/all/modules/contrib/memcache/dmemcache.inc on line 64″ while reading response header from upstream. We can’t fixed this … Read more