Questions tagged [memcache]
The memcache tag has no usage guidance.
114
questions
0
votes
1
answer
1k
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: ...
0
votes
0
answers
121
views
Varnish caching issue in the 'Add to cart' section ,,, Drupal,Nginx,Php-Fpm
We are running an ecommerce site configured by drupal with nginx & php-fpm. We also use memcached with mysql database.The service was running smoothly before we enabled the varnish caching. After ...
2
votes
1
answer
167
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
0
answers
278
views
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 ...
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 ...
0
votes
2
answers
2k
views
PHP Fatal error: tried to allocate 47264368 bytes
While running a website hosted into two app servers via load balancer, suddenly one app server stopped working and got hang. From the other app server access log found 499 status and also load average ...
0
votes
0
answers
3k
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
1
answer
1k
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
...
2
votes
2
answers
12k
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
1
answer
196
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
0
answers
2k
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
1
answer
624
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
1
answer
2k
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
2
answers
95
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
./...
-1
votes
1
answer
3k
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
1
answer
2k
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
1
answer
10k
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
1
answer
1k
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 ...
1
vote
1
answer
2k
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:
...
4
votes
3
answers
41k
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
2
answers
2k
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
2
answers
8k
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
1
answer
1k
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
1
answer
10k
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
1
answer
504
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
1
answer
2k
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
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 ...
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 ...
1
vote
1
answer
1k
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
1
answer
138
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
1
answer
2k
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
1
answer
161
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
1
answer
4k
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
1
answer
1k
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
1
answer
5k
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
2
answers
1k
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
2
answers
365
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
1
answer
286
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
1
answer
1k
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
1
answer
131
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 ...
7
votes
2
answers
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
1
answer
1k
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 ...
1
vote
2
answers
407
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
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'] = ...
2
votes
3
answers
53k
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
3
answers
884
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 ...
0
votes
1
answer
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 ...
12
votes
5
answers
30k
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
1
answer
454
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
1
answer
2k
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 $...