vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Board Optimization - Plugin Based Template Cache (https://vborg.vbsupport.ru/showthread.php?t=121876)

amcd 03-24-2007 07:08 PM

Weekends are very busy on my forum. I will try this next week and tell you.

COBRAws 04-07-2007 05:09 AM

This is great orban, thank you very much ;) I see some performance improvement now.

bigbadbob0 04-10-2007 11:43 AM

I installed this mod hoping to recover some of the increase in load I saw after upgrading from 3.0.10 to 3.6.5.

But this mod didn't help. The templates directory has 230 files making up 7.2MB of templates in it and APC shows what looks to be all of those being stored in its cache. So it is running.

However, cricket (and the scripts feeding cricket) show no discernable difference from before installing this mod and afterwards. See the attached picture. The green is the length of time in milliseconds it takes to get /forum/index.php. The red is the number of people currently browsing the forum (including guests, 15 minute timeout). You can see the big uptick in green last weekend, that was the upgrade to 3.6.5. We spent the week being slow. Easter weekend was dead for us, during which I installed this mod. Then yesterday was back to being slow.

I guess its time to upgrade hardware.

orban 04-10-2007 11:54 AM

Do you have graphs of your server load? And MySQL load?

Also forum/index.php isn't the best choice, try showthread/forumdisplay...

What kind of server are you running this on?

amcd 04-10-2007 12:31 PM

What did you use to get that graph?

bigbadbob0 04-10-2007 01:10 PM

I've sent orban the server hosting these graphs for him to look at the other metrics I monitor, I don't like having them public.

As I told him, I started monitoring forumdisplay but only after my upgrade to 3.6.5. Oops.

The web and db server are both FreeBSD 5.2.

bigbadbob0 04-10-2007 01:17 PM

Quote:

Originally Posted by amcd (Post 1224127)
What did you use to get that graph?

The software that manages keeping track of the data and generating the graphs is called Cricket. It's similar to MRTG if you've heard of that. http://cricket.sourceforge.net/

Once you get cricket setup and actually working (not the easiest thing to do) you can branch off of the example http performance demos and add in a datasource to keep the number of users online right now.

The script I use to get the number of users is:

Code:

#!/bin/sh

num_users_line=`fetch -o - http://www.mysite.com/forum 2>/dev/null | grep "Currently Active"`                                                         
echo `echo "$num_users_line" | perl -e 'while(<>){print $1 if m/: (\d+)/;}'`

If you actually get cricket up and running (or someone does) and wants me to share the cricket conf I use to get that particular graph I'd be happy to share.

|Jordan| 04-11-2007 05:45 PM

My cache keeps getting corrupt every few days. Specifically in the way it handles javascript. All my javascripts stop working and page elements get removed as a result.

Why is this happening?

orban 04-11-2007 05:51 PM

Were you editing templates before they broke?

|Jordan| 04-11-2007 06:22 PM

Yes, but then i deleted all the cached files. And then about a day later they broke again without me changing anything.


All times are GMT. The time now is 07:37 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01382 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete