Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted April 20, 201212 yr 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.
April 20, 201212 yr Author Also do I have to allocate memory, if so what sort of size would be suitable for a 2gb database?
April 20, 201212 yr 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...
April 20, 201212 yr Author 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?
April 20, 201212 yr I use and prefer xcache personally! :smile: On busy sites it reduces the server load by about 30%+ as well.
April 20, 201212 yr 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
April 21, 201212 yr Author 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"
April 21, 201212 yr Will u really use 128M for var cache? I hardly use above 10M.. Do u have xcache admin panel installed?
April 21, 201212 yr 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..
April 21, 201212 yr 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 :)
April 21, 201212 yr Author 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
April 21, 201212 yr 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.
April 21, 201212 yr Author 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
April 22, 201212 yr Author 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..
April 22, 201212 yr Author Hello Luis.. Just reverted back to mod_php and xcache admin works How do I adjust memory allocation in the admin panel?
April 22, 201212 yr Author 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.
April 24, 201212 yr APC is much easier to configure and deploy. The difference between it and xcache is negligible from my experience.
May 15, 201212 yr 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...
Archived
This topic is now archived and is closed to further replies.