The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
879 views

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 ...
2
votes
1answer
878 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 ...
3
votes
2answers
4k 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 ...
-1
votes
2answers
47 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
1answer
36 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
4answers
7k 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 then disk. I am serving a small page and want few images always served from RAM. I dont wish to ...
0
votes
0answers
20 views

Improve memcache performance?

Using PHP, I'm connecting to Memcache with: $this->mem = new Memcache; $connected = @$this->mem->connect("localhost"); I feel like I'm hitting some kind of bottleneck. Looking at the ...
0
votes
2answers
317 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 ...
0
votes
1answer
98 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 ...
1
vote
1answer
1k 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 ...
1
vote
0answers
132 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 ...
3
votes
2answers
727 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 ...
0
votes
0answers
336 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 ...
-1
votes
1answer
782 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 ...
0
votes
1answer
107 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
160 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 ...
1
vote
0answers
275 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 ...
0
votes
0answers
76 views

nginx upstream host setting with memcache

I want to setup a nginx setup with memcache enabled for pages as pointed out in page https://www.igvita.com/2008/02/11/nginx-and-memcached-a-400-boost/. First I tried nginx web server (with php-fpm ...
1
vote
2answers
1k views

phpMyAdmin displays blank page after installing APC and memcached

I am running a LAMP stack on CentOS 5.6 with PHP 5.3. I had installed phpMyAdmin and it worked. I was able to log in and do anything. Then I installed memcached and its PHP extension as well as APC ...
14
votes
3answers
20k views

How to increase the amount of memory memcache uses?

I am currently on a Xeon 7550 server running Redhat x86_64 es5 with 32gb RAM. I have memcache installed and the only step remaining in the configuration is to set how much memory it uses. I had done ...
1
vote
0answers
148 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
256 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
59 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
375 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
113 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
817 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
61 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 ...
0
votes
2answers
269 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
955 views

How to optimize TCP / IP stack in Linux? [closed]

Currently I noticed there are about 15K open connections to localhost. It is mainly connecting to Memcached. I am clueless where I should start to optimize TCP/IP stack. Memcached support UDP, but ...
0
votes
2answers
130 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
83 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
456 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 ...
4
votes
1answer
539 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
1answer
324 views

Memcache - PHP- Ubuntu :: cd: /var/lib/memcache: No such file or directory

I installed memcache PHP module on Ubuntu 10.04 My Steps: install php5-memcache (http://pecl.php.net/package/memcache) restart apache get phpinfo() memcache memcache support enabled Version ...
1
vote
1answer
802 views

How to debug/fix a php/apache segmentation fault while using memcache (redundant) for session storage?

os: debian squeeze (up2date) 2 apache mod php webserver 2 memcache server i have to apache mod_php nodes which use two memcache server for redundant session storage (used variant 3 from ...
0
votes
2answers
89 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 ...
1
vote
0answers
133 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
0answers
191 views

windows 2003 server - php_memcache.dll for PHP version 5.3?

(I posted this in stack overflow about 15 hours ago - but I was told that stack overflow >was not the right forum by the admins for this question, so I'm hoping that this is the >correct forum.) ...
0
votes
2answers
2k views

Configuring NGINX to work with memcache for reverse_proxy_cache

Is there any way to configure nginx to use memcache for storing cache data, as opposed to using files stored on hard drive?
0
votes
1answer
429 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 ...
0
votes
2answers
2k views

best practice with memcache/php - multi memcache nodes

So I am working on a web app - that has to be built for scalability. It stores frequent MySQL querys into the cache. I have pretty much everything built and ready to go - but I am concerned on best ...
1
vote
2answers
5k 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 ...
3
votes
2answers
10k views

Problems installing Memcache (PECL extension)

I have installed memcached fine, and now I will need to install PECL extension memcache. Im running RedHat x86_64 es5. The installation gives me this: downloading memcache-2.2.6.tgz ... Starting to ...
0
votes
3answers
343 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 ...
6
votes
3answers
302 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 ...
2
votes
1answer
146 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 ...
5
votes
2answers
2k 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 ...
0
votes
2answers
3k views

How much memory should be allocated to memcache?

How much memory should be allocated to memcache on a small EC2 intance (1.7 GB RAM). The OS is Ubuntu Hardy. Thanks.
0
votes
1answer
973 views

MemCache-repcached compile error

I'm trying to install [memcached-1.2.8-repcached-2.2.1]( http://sourceforge.net/projects/repcached/files/latest/download?source=files) And I have the following error after running the make command: ...
3
votes
1answer
441 views

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 ...