Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Plugin Based Template Cache Details »»
Plugin Based Template Cache
Version: 1.0.3, by orban orban is offline
Developer Last Online: Oct 2012 Show Printable Version Email this Page

Category: Board Optimization - Version: 3.6.0 Rating:
Released: 07-22-2006 Last Update: Never Installs: 153
Uses Plugins
Additional Files  
No support by the author.

Removed on author's request.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #182  
Old 12-06-2006, 11:40 AM
orban orban is offline
 
Join Date: Jan 2005
Posts: 445
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you try to use

apc.slam_defense, try 80 or 90 maybe.

and

apc.file_update_protection = 5

Code:
    apc.slam_defense        On very busy servers whenever you start the server or
                            modify files you can create a race of many processes
                            all trying to cache the same file at the same time.
                            This option sets the percentage of processes that will
                            skip trying to cache an uncached file.  Or think of it
                            as the probability of a single process to skip caching.
                            For example, setting this to 75 would mean that there is
                            a 75% chance that the process will not cache an uncached
                            file.  So the higher the setting the greater the defense
                            against cache slams.  Setting this to 0 disables this
                            feature.
                            (Default: 0)


    apc.file_update_protection
                            When you modify a file on a live web server you really
                            should do so in an atomic manner.  That is, write to a
                            temporary file and rename (mv) the file into its permanent
                            position when it is ready.  Many text editors, cp, tar and
                            other such programs don't do this.  This means that there
                            is a chance that a file is accessed (and cached) while it
                            is still being written to.  This file_update_protection
                            setting puts a delay on caching brand new files.  The
                            default is 2 seconds which means that if the modification
                            timestamp (mtime) on a file shows that it is less than 2
                            seconds old when it is accessed, it will not be cached.  
                            The unfortunate person who accessed this half-written file
                            will still see weirdness, but at least it won't persist.
                            If you are certain you always atomically update your files
                            by using something like rsync which does this correctly, you
                            can turn this protection off by setting it to 0.  If you
                            have a system that is flooded with io causing some update
                            procedure to take longer than 2 seconds, you may want to
                            increase this a bit.
                            (Default: 2)
Are you using NFS?
Reply With Quote
  #183  
Old 12-15-2006, 05:34 PM
Bulent Tekcan Bulent Tekcan is offline
 
Join Date: Oct 2003
Location: TURKEY - Istanbul
Posts: 437
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello orban

I tried this but same problem occured,and also load problem in my server since 1-2 month.Every 1-2 days server load jumping 150-160 than my mysql table is full,and a lot of error occured.Many ticket to my host and also report vbulletin.But since 1 week I had never problem,because uninstalled this product,load max 5-6 now.

I don't know why but this product not good idea very high traffic board and big boards.I think some files or script hang in system.

Thanks
Reply With Quote
  #184  
Old 12-15-2006, 08:39 PM
orban orban is offline
 
Join Date: Jan 2005
Posts: 445
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Bulent Tekcan View Post
Hello orban

I tried this but same problem occured,and also load problem in my server since 1-2 month.Every 1-2 days server load jumping 150-160 than my mysql table is full,and a lot of error occured.Many ticket to my host and also report vbulletin.But since 1 week I had never problem,because uninstalled this product,load max 5-6 now.

I don't know why but this product not good idea very high traffic board and big boards.I think some files or script hang in system.

Thanks
Well, this modification has nothing to do with mysql at all. (So a mysql table lock can not possible come from this addon.)

Files don't "hang", there is a file lock protection in place. You can have a look at the code, there is nothing that can possibly go wrong. (Unless you use special file systems that don't support file locking, like NFS.)

I was running this addon with a board with 3000 users online on a single server (250 requests/second, 150gb traffic on that day I think) load was between 10 and 20. Also on daily use with 400-1000 users online with a load between 0.5 and 2.

I am using this with great success and as you can see a lot of people use it without any problems too.

I would advise you to try xcache instead of APC or install the newest APC version if you don't have already.

This must be a misconfiguration on your side or a particular bug on your server.
Reply With Quote
  #185  
Old 12-17-2006, 04:53 PM
Bulent Tekcan Bulent Tekcan is offline
 
Join Date: Oct 2003
Location: TURKEY - Istanbul
Posts: 437
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm using APC 3.0.13 Development series,is xcache support PHP 5.2.0 and 64bit OS ?
Reply With Quote
  #186  
Old 12-17-2006, 05:11 PM
orban orban is offline
 
Join Date: Jan 2005
Posts: 445
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't know, maybe try to ask their irc channel. (irc://irc.freenode.net/lighttpd)

Also if you are using APC-dev it might be a bug.
Reply With Quote
  #187  
Old 12-17-2006, 05:54 PM
Kihon Kata Kihon Kata is offline
 
Join Date: Nov 2003
Posts: 763
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm running Fedora Core64 w/ PHP5 on my dedicated server AND running this. Works well.



Quote:
Originally Posted by Bulent Tekcan View Post
I'm using APC 3.0.13 Development series,is xcache support PHP 5.2.0 and 64bit OS ?
Reply With Quote
  #188  
Old 12-17-2006, 06:06 PM
amcd amcd is offline
 
Join Date: Oct 2004
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i am running FreeBSD 6 RELEASE with lighttpd and xcache and running this plugin and it works great
Reply With Quote
  #189  
Old 12-17-2006, 11:13 PM
dadimes dadimes is offline
 
Join Date: Nov 2006
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks, just installed on 3.6.3, and it works great

EDIT: problem :-/ when i go to the page without index.php at the end, it just ends at a blank
EDIT2: I got rid of that by deleting the index.html page, is that ok?
Reply With Quote
  #190  
Old 12-18-2006, 05:19 AM
Bulent Tekcan Bulent Tekcan is offline
 
Join Date: Oct 2003
Location: TURKEY - Istanbul
Posts: 437
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kihon Kata View Post
I'm running Fedora Core64 w/ PHP5 on my dedicated server AND running this. Works well.
Which version, xcache 1.0.3 or 1.2.0 (unstable)
Reply With Quote
  #191  
Old 12-18-2006, 08:45 AM
orban orban is offline
 
Join Date: Jan 2005
Posts: 445
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dadimes View Post
thanks, just installed on 3.6.3, and it works great

EDIT: problem :-/ when i go to the page without index.php at the end, it just ends at a blank
EDIT2: I got rid of that by deleting the index.html page, is that ok?
What exactly was your problem? When going to what page it was blank?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:09 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04756 seconds
  • Memory Usage 2,314KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete