Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-12-2009, 01:24 AM
DeanLag DeanLag is offline
 
Join Date: Jul 2009
Posts: 185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Template modifications - server intensive?

Hello all!

I was just wondering if template conditionals would be CPU intensive?
My hosting company just contacted me and said that my showthread.php is consuming a lot of CPU resources.

Would something like:
< if member id is 1, then background colour = blue,
else background colour = normal.>
Moreover, would something like:
<if threadid = 5 or threadid =10 or threadid = 50, then background colour = red
else
if threadid = 125 or threadid = 234
background colour = yellow
else
background colour = normal.>

Would the above codes be CPU intensive?
I have 4 days to rectify this or they'll terminate my VPS <_<

Thank you in advance
Reply With Quote
  #2  
Old 09-12-2009, 02:39 AM
Brandon_R Brandon_R is offline
 
Join Date: Aug 2009
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you are on a VPS and can't handle those kind of calls you really need to change hosts.
Reply With Quote
  #3  
Old 09-12-2009, 03:15 AM
DeanLag DeanLag is offline
 
Join Date: Jul 2009
Posts: 185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm thanks for that, Brandon. Maybe its one of the mods.
The current MODs im using are: Change Posts Owner 1.8.0

Code:
Colors For Usergroup In Forum Display 	1.0.0
 
Cyb - ChatBox 	2.3 	Cyb - ChatBox 	
 
Default User Text Formatting 	1.0 	
Easy Pages 	1.0.0L 	C
First Post On All Pages 1.0.0 	1.0.0 
Gameroom 	1.0.1 	Multiplayer gameroom 
Limit Poll Option Choices 	1.0.1  
Members who have Registered 	3.8.002 
Members who have Visited 	3.8.002 
Multiple Account Detection & Prevention 	1.1.3
Nick in Quickreply & Quote selected text 	1.0.4
Opserty: Individual Username HTML Markup 	1.0 
Real ip detection 	3.8.001 
 
Sakera's Hide Poll Result 	1.2 
Separate Sticky and Normal Threads [Forum Based] 	1.0.0
Show poll(s) in forumhome 	1.0.1
Show Profile Fields In Postbit, Zero Query & Templ
Usergroup Color Bar 	2.0.0 
Username HTML Markup 	2.0 	  	
 
v3 Arcade 	1.1.1 
v3 Arcade - Who's Online in the Arcade? 	2.0.0 
vBCode table 	0.1.7.1 
vBCommerce 	1.0.0 
vBCommerce Itemtype: Icon 	1.2
vBCredits 	1.4 
 
vBCredits with v3 Arcade 	1.1 
vBStatus 	3.0 	  	
 VietOnLine® 	3.8.x 	
Who Has Read a Thread. 	3.8.003 
Yet Another Award System 3.8 	3.8.2
I installed the [tg]Egg Avatar but removed it as it wasnt bring any real functionality to the the forums and prolly server intensive.
Would the Yet Another Award System be the culprit? or the vBcredits items showing on each page?

I've been with LunarPages before but was on a shared hosting environment and they said I was consuming too much CPU resources. So I moved to InMotion hosting with a VPS package, thinking the VPS would be enough to sustain technically any MODs.

So according to Brandon, the template edits are fine..
Reply With Quote
  #4  
Old 09-13-2009, 08:13 AM
DeanLag DeanLag is offline
 
Join Date: Jul 2009
Posts: 185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bump. Still need help with that =/
Reply With Quote
  #5  
Old 09-13-2009, 09:57 AM
James Birkett James Birkett is offline
 
Join Date: Jun 2009
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Feel free to disable the modifications relating to showthread.php and see if your CPU load lowers.
Reply With Quote
  #6  
Old 09-14-2009, 01:17 AM
DeanLag DeanLag is offline
 
Join Date: Jul 2009
Posts: 185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Aiight, thanks for that James.

Now they're telling me
Quote:
As to the resource usage, you're still using about 6.8 times the number of CPU cycles per day that you should be to fit on the platform. This appears to be mostly MySQL-driven load, probably due to queries coming from vBulletin.
Any ideas? =/
Reply With Quote
  #7  
Old 09-14-2009, 02:38 PM
James Birkett James Birkett is offline
 
Join Date: Jun 2009
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Some form of script? Hmm..
By default, vBulletin doesn't run very server-intensive scripts.
Disable all your modifications, either manually or by inserting the following code into your config.php right under <?php
PHP Code:
define('DISABLE_HOOKS'true); 
Does your CPU still run high?
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 01:42 AM.


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.03707 seconds
  • Memory Usage 2,216KB
  • Queries Executed 13 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete