Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 02-10-2005, 02:51 AM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Page generation time occasionally very high - help please?

Quote:
Page generated in 25.80994892 seconds (99.88% PHP - 0.12% MySQL) with 25 queries
This seems to be related to showthread.php mainly..and usually it is when I am clicking for the last post.

Why might it be doing so much php stuff?
Reply With Quote
  #2  
Old 02-10-2005, 06:18 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you have any hackes installed?
Looks like a timeout or smth. to me.
Reply With Quote
  #3  
Old 02-10-2005, 06:30 AM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KirbyDE
Quick reply to this message
Hey, now that's weird..look at what was stuck into the Quick Reply..

Anyway! Yeah. Many.

What would help to diagnose this?
Reply With Quote
  #4  
Old 02-10-2005, 06:44 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, replace showthread.php with the original (of course create a backup first) and check if it does still happen.
Reply With Quote
  #5  
Old 02-10-2005, 06:51 AM
neocorteqz's Avatar
neocorteqz neocorteqz is offline
 
Join Date: May 2002
Location: Barefoot Bay Fl
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well the 25 queries would be a start. Cut down the queries, and page generation times should go down with it.

adding $debug = 1 in config.php will help you asses what queries are being ran.

If you find you can get the query count down without removing hacks,then I suggest you ask in the threads of the hacks that you installed,how to cut down the queries without having to remove the hack.

Also some hacks just might not work well together.
Reply With Quote
  #6  
Old 02-10-2005, 07:10 AM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by neocorteqz
well the 25 queries would be a start. Cut down the queries, and page generation times should go down with it.

adding $debug = 1 in config.php will help you asses what queries are being ran.

If you find you can get the query count down without removing hacks,then I suggest you ask in the threads of the hacks that you installed,how to cut down the queries without having to remove the hack.

Also some hacks just might not work well together.
That dos'nt seem to be the problem here altho I agree it is a high number. Something in php is casuing the long execution time. Dose this happen only on showthread.php or dose it happen other places aswell?

What hacks have you made to showthread.php, the global scape, and are there any cron scripts running at certain times? What else is on this server?
Reply With Quote
  #7  
Old 02-10-2005, 07:23 AM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Brad.loo
That dos'nt seem to be the problem here altho I agree it is a high number. Something in php is casuing the long execution time. Dose this happen only on showthread.php or dose it happen other places aswell?

What hacks have you made to showthread.php, the global scape, and are there any cron scripts running at certain times? What else is on this server?
I have had a look at the 'explain' under debug mode...there seems to be a common thing in the part about parseing posts. That number is usually high...none of the queires being executed are above 0.7 usually, most are way way under it.

From memory - ibproarcade (crowns in postbit), AWS warning system, Activity, Private Threads...those ones affect showthread.php directly (or through functions_showthread.php).

Globally: Statistics, Hidden Posts notification in navbar, maybe one or 2 others.

As for what else is on the server, it's shared hosting, so it could well be anything.
Reply With Quote
  #8  
Old 02-10-2005, 08:35 AM
neocorteqz's Avatar
neocorteqz neocorteqz is offline
 
Join Date: May 2002
Location: Barefoot Bay Fl
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Could be the shared hosting, someone else is taking up an unsual amount of server resources somewhere. maybe even PHP.

if you have shell access in linux you should be able to check this out.I think the Top command would give you info on what processes arerunning. Windows I'm not sure how to check.
Reply With Quote
  #9  
Old 02-10-2005, 08:46 AM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you added any custom bbcodes? Is posting cache on or off?
Reply With Quote
  #10  
Old 02-10-2005, 08:50 AM
neocorteqz's Avatar
neocorteqz neocorteqz is offline
 
Join Date: May 2002
Location: Barefoot Bay Fl
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Brad.loo
Have you added any custom bbcodes? Is posting cache onor off?
just curious, what custom bbcode could cause problems?

I know I use the spoiler hack that was posted somewhere on the vBull sites.

Just want to make sure i don't install something that may cause problems down the road.
Reply With Quote
Reply

Thread Tools
Display Modes

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 03:52 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.04646 seconds
  • Memory Usage 2,247KB
  • Queries Executed 11 (?)
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
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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