Questions tagged [memcache]
114 questions
4
votes
1 answer
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 $uri/ @cache;
}
location @cache {
…

Tim
- 175
- 8
4
votes
1 answer
How does php know what memcached node to look for its data in?
I am new to the world of Memcached clusters
If I have a php web application that is using memcache - how does it does its hash and decide what node to check for a particular value to avoid having to check them all.
Bonus: How can I easily add a…

ckliborn
- 2,778
- 4
- 25
- 37
3
votes
3 answers
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 tried
sudo ps -e | grep memcache
sudo ps -e |…

the_velour_fog
- 497
- 2
- 4
- 14
3
votes
2 answers
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 ^\;…

alexus
- 13,112
- 32
- 117
- 174
3
votes
1 answer
APC fragmention woes on Apache AWS EC2 Small instance with WordPress and W3TC
AWS EC2 Small instance, Apache 2 running WordPress and W3TC. Within an hour, my APC fragmentation hits 100%.
My APC settings are:
apc.enabled = 1
apc.shm_segments = 1
apc.shm_size = 100M
apc.optimization = 0
apc.num_files_hint =…

two7s_clash
- 215
- 1
- 4
- 14
3
votes
1 answer
Best Way to store sessions in a High Availability / High Performance way in Multiple Server Environment
I have an application (Magento) that has an abstracted session storage layer. I'm trying to visualize the best way to store sessions.
mysql Database? I'm thinking a dedicated database with a very large innodb_buffer_pool_size so its basically like…

Bryan Ruiz
- 131
- 3
3
votes
2 answers
Multiple AWS EC2 running Auto Scaling and Distributed Memcache
I'm planning to use distributed Memcache across a series of Linux web servers on Amazon EC2. These EC2s currently run auto scaling so will increase and decrease with load.
I have used this post to guide the initial setup.
best practice with…

daviemanchester
- 31
- 3
3
votes
1 answer
Apache2 Segfault - need help interpreting this coredump (suspect cause is memcache / php session related)
Three Apache2 web servers running a PHP 5.2.3 web site. We're using Memcache to cache rendered pages but also as the storage engine of the PHP Sessions.
At peak traffic times we're getting Apache segmentation faults on all three web servers and all…

WayneDV
- 31
- 3
2
votes
2 answers
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 using memcache (note: not memcached!).
I believe I…

Ben Holness
- 944
- 2
- 10
- 28
2
votes
1 answer
Memcached failover technique
We have 2 memcached servers configured and use the Eniym client. When one of the server is down, it appears this server is added to the deadServers list (ServerPool.cs) and tries to resurrect the server every 10seconds (we have configured…

user25164
- 421
- 2
- 5
- 17
2
votes
0 answers
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 object.
In another old question on memcache this…

A.Jesin
- 424
- 1
- 4
- 14
2
votes
1 answer
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 problem? How can I block access to it?

ComMania
- 61
- 2
- 7
2
votes
3 answers
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 high memcached (presume its the memcached) the crash…

mahen3d
- 4,342
- 14
- 36
- 57
2
votes
1 answer
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 that it assign 128M to each account(domain)? Let's…

gilzero
- 439
- 4
- 9
- 20
2
votes
2 answers
m1.small nodes for memcache array on AWS EC2
I am currently having an m1.large instance acting as a memcache server.
I would like to replace that with 2 m1.small nodes for High Availability more or less for the same cost.
But I am concerned about the impact of the moderate IO performance of…

webgr
- 213
- 1
- 2
- 7