Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [memcache]

The tag has no usage guidance.

0
votes
0answers
196 views

even after apt-get update E: Unable to locate package php5-memcached

I received a error "PHP Fatal error: Class 'Memcache' not found in " so I tried to install memcache using the following command "sudo apt-get install php5-memcache" but it throws the following ...
0
votes
1answer
128 views

Can't set session.save_handler to memcache

NGINX + PHP-FPM 5.7.12 I'm trying to set my session handler to memcache, so I installed the module php-memcache, opened /etc/php.ini and changed the following lines: session.save_handler = memcache ...
0
votes
0answers
315 views

Upgraded PHP 7.2 successfully but issue with Cache Refresh / Memacache in Centos

As I have upgraded upgraded PHP 5.4 to PHP 7.2 in centos by using following commands. I have successfully upgrade to php 7.2 Due to some reason cache is not updating. I have custom clear cache ...
2
votes
2answers
3k views

PHP 7.2 Failed to read session data: memcache

I am moving some servers from Ubuntu 16 to Ubuntu 18 and I am having trouble getting php sessions and memcache working. On the current (Ubuntu 16) setup, there are three servers sharing sessions ...
0
votes
0answers
32 views

Memcache connection drops frequently

I have installed memcached version 1.4.4-14-g9c660c0 in windows 2016 server. My OS is windows and i could not get library file for memcached so i downloaded DLL for memcache. Though service is ...
0
votes
1answer
58 views

Two websites in different servers has same cookie_domain but is not sharing session [closed]

I have two different sites that has their own server. Site#2 sends request to Site#1 for logging customer in. Request contains Allow Crendentials Header and response is status 200. Both sites has same ...
1
vote
0answers
867 views

How do I debug memcache?

I recently migrated a system from an Ubuntu 12 based four-webserver setup to an Ubuntu 16 three-webserver setup in a new data centre . The system uses memcache for the session handler. The session is ...
0
votes
1answer
181 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
717 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
57 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 ./...
-2
votes
1answer
798 views

Can't telnet to memcache server

I'm trying to connect the application server to the memcache server. App Server 12.12.12.12 Memcache Server 13.13.13.13 Memcache Port 11211 I've tried the following. Ping from 12.12.12.12 to 13....
1
vote
1answer
985 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
6k views

“Memcache can't connect, connection refused (111)”? [closed]

First of all... I must say, I don't know much about servers. I'm the kind of php developer that don't use command lines very often. I'm very uncomfortable in the Terminal. However, I'm learning. I'm ...
0
votes
1answer
450 views

Why memcached takes much more memory than specified in its configuration

I have set Item Size to 128M and Maximum Memory to 1024M in my memcached configuration. But when I run this command: ps -eo pmem,pcpu,vsize,pid,cmd | sort -k 1 -nr | head -5 I get 71.7 0.0 3072592 ...
0
votes
1answer
1k views

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: ...
1
vote
2answers
17k views

how can I tell if memcache is running?

I have just installed memcache on (not memcached) on Ubuntu 14.04 via sudo pecl install memcache the module is showing as loaded in phpinfo output. But I cant see if the daemon is running. I have ...
1
vote
2answers
1k views

Why is Memcache not starting automatically?

I installed memcache in my CentOS server, and the respective libraries for php as well: Despite having installed both of them, I ended using Memcache $memcache = new Memcache; Since I wanted the ...
3
votes
2answers
6k views

PHP memcached session redundancy

I'm trying to follow How To Share PHP Sessions on Multiple Memcached Servers article and implement that to my environment: /etc/php.d/memcache.ini: # grep -v ^\; /etc/php.d/memcache.ini extension=...
1
vote
1answer
910 views

Having Memcache and Memcached installed and enabled at the same time

Can I use both Memcache and Memcached php extensions on the same server at the same time? Just to be clear so you dont misunderstand what I mean by this question, here is my scenario: I have both ...
1
vote
1answer
5k views

How do I increase the curr_connections limit using memcache?

I am using a server with Centos 6.5 64 bits Kernel 2.6.32 and 64 GB RAM and 12 threads cores, and I cannot get increase the current connections used in memcache. This is my STATS output: # echo ...
0
votes
1answer
459 views

Couchbase Community Edition as a Cache

It is mentioned here(www.couchbase.com/memcached) that couchbase can be used as the caching layer. I am supposed to use the community edition for my caching layer. As found in Internet, there are many ...
1
vote
1answer
959 views

memcache and memcached session not persisting

so I am having a problem with sessions persisting in an application, that is using the memcached php driver, while another existing application is using the memcache driver. On the server, I see both ...
2
votes
0answers
581 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 ...
1
vote
0answers
222 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 ...
1
vote
1answer
979 views

Does PHP memcached client support prefix-based cache purge?

I'm looking for a simple answer to a simple question that is hard to search for. Does memcache support purging a subset of keys? Or is a purge call always going to flush the entire cache? More ...
2
votes
1answer
105 views

Memcache_connect and security

$memcache_obj = memcache_connect('My server's IP address', 11211); Using this php code, could anyone can connect to my Memcached server and put something using memcached_get()? Is it a security ...
1
vote
1answer
1k views

How do I configure Linux to use less memory for caching?

I have a follow up question to 377448, but not enough rep to comment there. Before I get dinged for asking the same dumb question, let me say I've been reading a lot of similar posts and answers ...
1
vote
1answer
145 views

PHP + Mysql and memcache or phpsessions

I currently manage a game that handles around 8K daily users, the current server setup is VPS: 16GB+8cores+ 160GBSSD. Handles 8K daily users that are generating 600K daily direct calls to the mysql ...
0
votes
1answer
2k views

Right way to configure memcache

I'm trying to change memcache memory size limit in my CentOS env. I've examined other questions and found out there SHOULD be a file, which is mostly under /etc/sysconfig/memcached and if not I should ...
-1
votes
1answer
675 views

How to make memcache accessible only from several ip's?

I have 4 load balansed apache servers, that are using one memcache server. I want to make memcache server accessible only from my this 4 servers. How can I do it? Can I write something like this in ...
1
vote
1answer
4k views

Configuring HAProxy with memcache with failover

I'm configuring a new set of servers for an existing Wordpress site, and it's been requested that memcache be available and made more resilient. The idea proposed is to have HAProxy send requests to ...
0
votes
2answers
889 views

Can memcache invoke a script to reload itself after startup on Ubuntu?

Since memcache stores everything in ram, it will lose its store after a node recovers from failure. Does memcache offer a hook to invoke a script after it starts up? We want that script to do "...
0
votes
2answers
281 views

Which one is better to query from - loopback-ip or interface-ip?

I have memcache server listing on 0.0.0.0:11211. I have to query the memcached server from the same box. Which one do you think is better: querying from 127.0.0.1:11211 or from interface-ip:11211. ...
1
vote
1answer
160 views

Is ECC memory recommended for memcache? [duplicate]

I'm planning to buy new server for memcache/couchbase. Would you recommend using ECC memory for a memcache server, why/why not?
0
votes
1answer
957 views

how to uncompress memcached content via nginx?

I'm using memcached to store html content ready for nginx to display but I'm getting the compressed output in the browser. It works if I turn off compression in PHP but doubles the response time ...
0
votes
1answer
119 views

Incrementing values, alternate way of doing this that won't use MySQL

I need to count impressions of a .php script that is accessed via web. Right now I do this in a 1 line MySQL table and just increment the value. This works fine usually but when the server has traffic ...
6
votes
2answers
2k views

Redis vs Memcache

I'm a bit new to Memcache and Redis and I'm trying to understand the difference between the two and what each actually is. As has been explained to me Memcache is a database caching solution. Data ...
4
votes
1answer
818 views

Memcache/Elasticache holding many user passwords in memory instead of DB

I have two servers in AWS. One is a live production server (a multi site WordPress installation with hundreds of sites and about 5,000 users) and the other is a clone of prod that is being configured ...
0
votes
2answers
131 views

Memcached - i installed it on centOS and have it running. Will it auto run when i reboot?

I did this: sudo yum install memcached then sudo pecl install memcache then I restarted memcache (which actually only started it) with this: sudo /sbin/service memcached restart i have no ...
1
vote
0answers
161 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'] = ...
1
vote
2answers
32k views

Memcached Debuging/Server Logs Monitor the Memcached Servers?

I have chat engine which is based on the Memcached variables, putting them into arrays and reading them in other end via jquery, which works fine 95% of the times, however when the server load is ...
0
votes
3answers
622 views

I enabled mem_cache and cache then disabled them, now my apache2 server won't respond

Yikes. I just attempted to enable cache and mem_cache using sudo a2enmod mem_cache and sudo a2enmod cache on my Ubuntu lucid server. Now my apache2 server doesn't respond at all. I tried sudo ...
-1
votes
1answer
2k views

Forward localhost memcached server on port 12111 to domain.com memcached server

My customers are running many scripts that uses memcached, but all of them are using localhost as a address. My localhost server is now out of RAM, because it's doing many other things like WWW and ...
10
votes
4answers
20k views

How to configure nginx to serve static contents from RAM?

I want to set up Nginx as my web server. I want to have image files cached in the memory (RAM) rather than disk. I am serving a small page and want a few images always served from RAM. I don't wish to ...
2
votes
1answer
262 views

Memcached memory consumption?

Server info: cPanel / 4GB The conf file as below: #Memory a user -m 128 # default port -p 11211 # user to run daemon nobody/apache/www-data -u nobody # only listen locally -l 127.0.0.1 Does it mean ...
4
votes
1answer
1k views

Nginx, memcached and cakephp: memcached module always misses cache

I've got a simple nginx configuration; server{ servername localhost; root /var/www/webroot; location / { set_md5 $memcached_key $uri; index index.php index.html; try_files $uri $...
6
votes
3answers
486 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 ...
8
votes
3answers
3k 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 ...
5
votes
2answers
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 -...
0
votes
1answer
629 views

Nginx with memcache module fallback to upstreams

I want to use nginx with the memcache module to check my memcache server first then if the key is not found then to fallback to my upstream servers. I see lots of examples of proxing to multiple ...