Rss Feed

welcome to my space

Memcached or Xcache...or both?

March 13th, 2010 by , under nnmj.com.

  • Hello,

    I have fairly large forum, 1mil + posts, over 10000 members, up to 300 online at anytime, all on one server, dual xeon, 2gb of RAM...etc

    For the most part the load averages hold steady around 1-2.40.....but it spikes at high volume times to over 20 and the forum grinds to a halt.

    I've instituted all the standard optimizations in Apache, MySQL and Vbulletin and think it's time to install some type of caching system to improve performance.

    I've been reading about about memcached and Xcache and cant decide which one is the best to install. I was thinking memcache first, and then going from there.

    Just looking for recommendations.....it seems mySql takes the most load.


  • Just out of curiousity, check the mail server when the load goes high. That is the usuual culprit on my site.

    Other possibilities include any automated tasks such as backups and cPanel updates.


  • Great...thank you. I think I will start with Memcached first since it addresses mySQL and seems easier to install, see how it works then think about Xcache after that.

    :D

    Actually, I've found that XCache is easier to install than memcache since you need the 'memcached' daemon as well as the 'memcache' php module.

    In addition to functioning as an opcode cache, the author has created a mod for vB that will allow you to store your datastore in XCache (which is what you'd be doing with memcache). There is also a plugin for caching your templates as var data.

    http://www.vbulletin.org/forum/showthread.php?t=141005
    http://www.vbulletin.org/forum/showthread.php?t=139151


  • Actually, I've found that XCache is easier to install than memcache since you need the 'memcached' daemon as well as the 'memcache' php module.

    In addition to functioning as an opcode cache, the author has created a mod for vB that will allow you to store your datastore in XCache (which is what you'd be doing with memcache). There is also a plugin for caching your templates as var data.

    http://www.vbulletin.org/forum/showthread.php?t=141005
    http://www.vbulletin.org/forum/showthread.php?t=139151

    I've been using XCache as a datastore, but hadn't seen the template caching. Thanks, I'm going to give this hack a try! :)

    EDIT: Just a note, if you have XCache and running the datastore hack, try caching your templates. I'm seeing a GREAT speed increase!! Thanks so much for the link!


  • The template cache is nice if you don't use the plugin system to add html to the templates. If you do then its really worthless when you have to start excluding templates like forumhome and showthread.

    Well, depends on what "parts" of the templates you have the HTML added in. I have one plugin on a template, but it's only the "navbar" template, so not bad... For those that are running XCache already, it's worth a shot!


  • The template cache is nice if you don't use the plugin system to add html to the templates. If you do then its really worthless when you have to start excluding templates like forumhome and showthread.


  • Memcached and XCache are totally different. Memcached doesn't help you with PHP caching in general. It can be helpful to cache the datastore though. So yeah ... I'd just go ahead, setup both and see if it helps.

    We are using Memcached and XCache for quite some time now and it's been very helpful here :)


  • well Im using Xcache for php/var..its working fine...


  • Yeah I dont have cpanel, it's not the backups, mail doesnt top out either

    It's definitely mySQL with a large forum


  • Memcached and XCache are totally different. Memcached doesn't help you with PHP caching in general. It can be helpful to cache the datastore though. So yeah ... I'd just go ahead, setup both and see if it helps.

    We are using Memcached and XCache for quite some time now and it's been very helpful here :)

    Great...thank you. I think I will start with Memcached first since it addresses mySQL and seems easier to install, see how it works then think about Xcache after that.

    :D







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about Memcached or Xcache...or both? , Please add it free.