Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
THL Posted April 20, 2012 Posted April 20, 2012 I used to have xcache installed on my board until I ran into some problems..after site issues.. I've now been told to use APC. Which cache system is the fastest or most used for IPB.
THL Posted April 20, 2012 Author Posted April 20, 2012 Also do I have to allocate memory, if so what sort of size would be suitable for a 2gb database?
Luis Manson Posted April 20, 2012 Posted April 20, 2012 i user xcache for al long time, but i switched to apc a few days ago just for fun, for what i know apc can cache var data, while xcache cant...
THL Posted April 20, 2012 Author Posted April 20, 2012 i user xcache for al long time, but i switched to apc a few days ago just for fun, for what i know apc can cache var data, while xcache cant... Any difference in speed? Also what memory did you have allocated to apc?
Rhett Posted April 20, 2012 Posted April 20, 2012 I use and prefer xcache personally! :smile: On busy sites it reduces the server load by about 30%+ as well.
Luis Manson Posted April 20, 2012 Posted April 20, 2012 no really to be honest AFAIK the both are almost head to head...but APC can store variable data so that should help a little bit, my only problem is fragmentation, but i reset the cache every few days... i checked right now after maybe 3 days...0.8 fragmentation, 100Mb used + 3.5Mb to var data Hits: 271707 (99.7%) Misses: 726 (0.3%) Cached Files 568 ( 97.5 MBytes) Hits 271707Misses 726 Request Rate (hits, misses) 368.65 cache requests/secondHit Rate 367.67 cache requests/second Miss Rate 0.98 cache requests/second Insert Rate 0.80 cache requests/second Cache full count 0
THL Posted April 21, 2012 Author Posted April 21, 2012 Just enabled xcache.. Do these settings look ok ? extension="xcache.so" xcache.admin.enable_auth="on" xcache.admin.pass="xxxxxxxxxxxxxxxxxxxxxxxxx" xcache.admin.user="xxxxxxxxxx" xcache.cacher="On" xcache.coredump_directory="" xcache.count="4" xcache.coveragedump_directory="/tmp/pcov/" xcache.coveragedumper="Off" xcache.coverager="Off" xcache.gc_interval="300" xcache.mmap_path="/dev/zero" xcache.optimizer="On" xcache.readonly_protection="Off" xcache.size="128M" xcache.slots="8K" xcache.test="Off" xcache.ttl="3600" xcache.var_count="1" xcache.var_gc_interval="0" xcache.var_maxttl="0" xcache.var_size="128M" xcache.var_slots="8K" xcache.var_ttl="0"
AlexJ Posted April 21, 2012 Posted April 21, 2012 Will u really use 128M for var cache? I hardly use above 10M.. Do u have xcache admin panel installed?
AlexJ Posted April 21, 2012 Posted April 21, 2012 no really to be honest AFAIK the both are almost head to head...but APC can store variable data so that should help a little bit, my only problem is fragmentation, but i reset the cache every few days... i checked right now after maybe 3 days...0.8 fragmentation, 100Mb used + 3.5Mb to var data I believe that happens on xcache too.. i have to clean up xcache to avoid slowness every few days..
Enkidu Posted April 21, 2012 Posted April 21, 2012 I used to have xcache installed on my board until I ran into some problems..after site issues.. I've now been told to use APC. Which cache system is the fastest or most used for IPB. there is no one answer for this question as everyone has different setup. Your experience with any of these so called accelerator is unique to you. Personally I had issues with APC. In addition, it also depends on your PHP handler. Here is a video by Tristan of cPanel explaining the differences: hope this helps :)
THL Posted April 21, 2012 Author Posted April 21, 2012 I've been trying to get access to the xcache admin panel with no success my hosting tried to set it up for me.. This is there response.. Hello As per our conversation, I have been trying to get the Admin url to work for you. It appears to be php causing this problem the source code for the admin panel does not appear to b written fcgi. At this point using that admin interface will not be possible unless you change your servers php handler. Please let me know if you need anything else. Thank You. Do I need the admin panel for xcache? My setup is.. PHP 5.3.10 Zend, FastCGI, Xcache. Or should I revert back to APC
p4guru Posted April 21, 2012 Posted April 21, 2012 As Enkidu said depends also on php handler used. Also it depends on web server used too. I findfor Apache with fastcgi/mod_php, use Xcache slight faster than APC for Litespeed web server with mod_php non-suexec, use Xcache for slightly better performance but an expense of incompatibility with some scripts or APC cache which seems to handle a wider variety of scripts for Nginx web server with fastcgi/php-fpm, APC better Also note if you scripts rely on Ioncube encoder, may have issues with Xcache. HTH THL, i think fastcgi works with Xcache, just not CGI or suPHP based PHP handlers. But yes xcache admin is useful to adjust memory allocation as needed.
THL Posted April 21, 2012 Author Posted April 21, 2012 THL, i think fastcgi works with Xcache, just not CGI or suPHP based PHP handlers. But yes xcache admin is useful to adjust memory allocation as needed. My host is saying xcache admin is unable to be setup due to my handler being fastcgi
THL Posted April 22, 2012 Author Posted April 22, 2012 I'm not sure about error, but Visiting xcache admin folder does nothing, he tells me I can set it up from php.ini instead..
p4guru Posted April 22, 2012 Posted April 22, 2012 sounds like xcache not configured/installed correctly
Luis Manson Posted April 22, 2012 Posted April 22, 2012 I'm not sure about error do you want help with this?
THL Posted April 22, 2012 Author Posted April 22, 2012 Hello Luis.. Just reverted back to mod_php and xcache admin works How do I adjust memory allocation in the admin panel?
THL Posted April 22, 2012 Author Posted April 22, 2012 This is my xcache results, what are the different xcache php sections (php 0, php 1, etc) I've now changes this to 256M instead of 128M.
Luis Manson Posted April 22, 2012 Posted April 22, 2012 these setting are what you need :) xcache.count="4" xcache.size="128M"
Velvet Elvis Posted April 24, 2012 Posted April 24, 2012 APC is much easier to configure and deploy. The difference between it and xcache is negligible from my experience.
altenerg Posted May 15, 2012 Posted May 15, 2012 Dam, I still can't upload attachments. Anyway I'm using APC now. My IPB debug-1 exec times are between .0300 ms - 0.0700 ms on various pages with APC enabled and about 40% slower exec times without APC. I used to use eaccelerator but the faster php 5.4 is not compatible with eaccelerator. I have not tried xcache with 5.4 php since http://lighttpd.net/ has lost their steam thanks to NGINX! So not really interested I guess...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.