Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Dmacleo Posted January 30, 2012 Posted January 30, 2012 don't have link now but over last few days I had seen some mentions of running memcache alongside apc. why? does memcache work on files apc doesn't? I don't see, in a very quick search, any reason running both would help.
Grumpy Posted January 30, 2012 Posted January 30, 2012 I have been one of them, and one of the people running this setup. So, I guess I'll answer. (Just to note, the word apc in this post can be freely exchanged with xcache as well) If you are running on a single machine, just APC is fine and memcache + apc gives no additional performance benefit (assuming that you're using apc as user cache as well). APC is however an opcache + user cache. That is, it speeds up php performance and gives memory room to store what ever data. Memcache is only a user cache. It does not speed up php performance. So, on your php server, you'd install apc. On your 2nd server, memcache runs. This splits the load and allows you to create a tiered caching method (should you choose to). For example, facebook does this (tiered cache) but with a hoard of cache farms... Memcache also carries certain features that APC does not have and same vice versa. If you want to use one of such feature, you'll do exactly that even with a single server. I personally use some features only found in memcache -- none which is of IPB's natural usage.
Dmacleo Posted January 30, 2012 Author Posted January 30, 2012 ah, that makes sense. I am single machine and have tried memcache before with no noticeable gains. I may play around in a bit to see but I always wondered about setups like you explained too. thank you
Dmacleo Posted February 1, 2012 Author Posted February 1, 2012 had not had chance to look at this but apc started causing apache to stop. seems apc has documented bug (I don't have ink now) with php 5.3.9. tired of messing w/ it so will look into others.
Grumpy Posted February 1, 2012 Posted February 1, 2012 try xcache instead. ... or downgrade your php.
Dmacleo Posted February 4, 2012 Author Posted February 4, 2012 from what I see all (except mem) need fastcgi but can't get any uploads over 1m +/- to work when thats used.
Grumpy Posted February 5, 2012 Posted February 5, 2012 from what I see all (except mem) need fastcgi but can't get any uploads over 1m +/- to work when thats used. 1. Not sure why you "need" fastcgi. Missing background/context 2. Upload limit isn't controlled by apc or xcache. Suggest you review your php.ini file. I'm running apc and I have 200mb file limit set.
Dmacleo Posted February 5, 2012 Author Posted February 5, 2012 had to edit conf filehttp://pivica.me/blo...odfcgid-problem # Work around annoying fcgid limitations <IfModule mod_fcgid.c> # 20MB should be enough MaxRequestLen 20000000 </IfModule> apc won't work with dso/suphp/cgi on a whm/cpanel server, not sure about any other setup. now I have mod_fgci working right apc is helping me.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.