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 12-05-2010, 09:36 PM
TacticalNuke TacticalNuke is offline
 
Join Date: Mar 2007
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Long Load Times - cron.php

Google Webmaster Tool's has been reporting long site load times so I had my host take a look. I was told they used firebug to look at the site and most of the time it was loading quickly but occasionally would take 6 seconds or more to load. In all cases apparently cron.php was the culprit for the long load times. Is there a way to rectify this issue?
Reply With Quote
  #2  
Old 12-05-2010, 10:06 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Which cron job is taking all the time? You'll need to find that out first. If you have an active board, then looking at the time of the hang will tell you want cron job by looking and seeing which task is supposed to run at that time.
Reply With Quote
  #3  
Old 12-05-2010, 10:51 PM
TacticalNuke TacticalNuke is offline
 
Join Date: Mar 2007
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the quick response, Lynne. I sent an e-mail to my host and here's the response I received (edited for brevity):

Quote:
This wasn't a cron job being run by the server, it was a file called cron.php being loaded by your home page during the page load.

That is the culprit. I'm afraid I don't know what cron.php does though.
This is interesting because I recently switched from a shared server to a VPS server with a new host. With my old host, I was getting page load times of about 1.5-2 seconds with this kind of traffic. Now I'm at 3.0 seconds and that's no good at all, especially because ostensibly this VPS should have significantly more resources available.
Reply With Quote
  #4  
Old 12-05-2010, 11:16 PM
sheppardzwc sheppardzwc is offline
 
Join Date: Dec 2008
Location: South Carolina
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TacticalNuke View Post
This is interesting because I recently switched from a shared server to a VPS server with a new host. With my old host, I was getting page load times of about 1.5-2 seconds with this kind of traffic. Now I'm at 3.0 seconds and that's no good at all, especially because ostensibly this VPS should have significantly more resources available.
There are two types of cronjobs out there; one is at the system level that the server actually does, and one is at PHP's level which is done when a page is loaded. Most of these are small and are just cleanup tasks, but a modification you installed recently could be the culprit, or your VPS is just not up to par for it. Your host isn't going to be able to help you with this issue most likely though other than looking at logs; most don't know vBulletin and aren't trained in it, therefore have no idea what it is or if they do, don't know it's inner workings. In some cases if you purchased a low-end VPS you get less power - I found this out the hard way. With most shared servers while you're sharing the resources, they are significantly more powerful servers and aren't segmented like VPSes are, therefore you get more resources if you're with a trustworthy provider. Of course, not saying VPSes aren't powerful as if you're with a good provider they can be an indispensable alternative to dedicated servers.
Reply With Quote
  #5  
Old 12-06-2010, 02:22 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cron.php runs any number of 'cron' jobs - they are called Scheduled Tasks if run by vBulletin. As stated before, you would need to know what time the job was run in order to figure out which of the Scheduled Tasks it is that is at fault. But, as mentioned above, they are usually small tasks and shouldn't be causing any problem at all if you left them as they were when you first installed vbulletin.
Reply With Quote
  #6  
Old 12-06-2010, 02:24 AM
TacticalNuke TacticalNuke is offline
 
Join Date: Mar 2007
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks to both of you for the explanation on that. I suppose it's likely the VPS as I haven't changed modifications at all since I moved over (and before then I hadn't changed them for a long, long time). The host is WiredTree, though, so it's definitely one of the better ones. Of course, I moved from ASmallOrange and I guess they were just really good with their resources.

I checked cron.php and it was last modified 7/19/2009 so definitely nothing has changed there in a while.

This is a tough call now. I can't justify upgrading with this host if a $50/month VPS with 768 of RAM can't handle 825K pageviews in a month, especially as we'll have months coming up with 2 million pageviews. Hmmm, what would you all recommend?
Reply With Quote
  #7  
Old 12-06-2010, 02:38 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

We aren't wondering if the cron.php file has changed - have any of your Scheduled Tasks changed? All of those tasks get called by the same file cron.php. You can't tell which one of the jobs was being run except by the time. Notice how each task is run at a different time. If the task causing the issue is run at 0:00 server time, then it is most likely the Daily Statistics Log which runs at midnight (server time) every night. If the problem is at 0:01 (server time), the most likely the Birthday notices which go out at 0:01 server time every night. So, you need to know what time the problem is happening and compare it to the jobs you have running.
Reply With Quote
  #8  
Old 12-06-2010, 03:01 AM
TacticalNuke TacticalNuke is offline
 
Join Date: Mar 2007
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Should I be looking at stats in WHM, cPanel or elsewhere?
Reply With Quote
  #9  
Old 12-06-2010, 04:00 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Stats for what? You said your host said it was cron.php. So, ask them for the log that shows the times this is happening. Then look at your Scheduled Tasks in the admincp and see which task was running at the time your host says the cron.php file was causing problems.
Reply With Quote
  #10  
Old 12-06-2010, 09:26 PM
TacticalNuke TacticalNuke is offline
 
Join Date: Mar 2007
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

After a bit of back and forth with my host, here's the only info I can get from them:

They used firebug to load the site and it loaded "very quickly" 24 out of 25 times. One of those times, though, it took longer than 6 seconds to load and the culprit was cron.php.

However, that information does not jive with my Google Webmaster Tools info as a 3 second page load average is very slow.

Apparently they cannot provide graphs of page load time and do not have anyone familiar with vBulletin (and I was told since it's a script issue, it's my issue and not theirs).
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 02: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.05569 seconds
  • Memory Usage 2,252KB
  • 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
  • (2)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