The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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?
|
#2
|
||||
|
||||
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.
|
#3
|
|||
|
|||
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:
|
#4
|
|||
|
|||
Quote:
|
#5
|
||||
|
||||
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.
|
#6
|
|||
|
|||
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? |
#7
|
||||
|
||||
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.
|
#8
|
|||
|
|||
Should I be looking at stats in WHM, cPanel or elsewhere?
|
#9
|
||||
|
||||
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.
|
#10
|
|||
|
|||
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). |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|