Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 10-29-2008, 12:55 PM
servermin servermin is offline
 
Join Date: Mar 2008
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Cron Job Question

I have a very large site that is running great on the server I have. A real workhorse.

I'm having an issue with the cron.php running. I have no idea where I can edit times that runs, or truly what it is doing. It is taking up 75% of the server resources, which just crashes my heavily used site.

Any ideas or comments would be appreciated.

Thanks!
Reply With Quote
  #2  
Old 10-29-2008, 01:58 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cron.php is run as a Scheduled Task. You can see all your Scheduled Tasks in your admin cp > Schedules Tasks > Scheduled Task Manager.
Reply With Quote
  #3  
Old 10-29-2008, 02:01 PM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What is running in scheduled tasks? Are you using the rss posting bot? It runs a a lot.
Reply With Quote
  #4  
Old 10-30-2008, 01:56 AM
servermin servermin is offline
 
Join Date: Mar 2008
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I adjusted those options and cut way back, but still seeing this take up 95% of server resources...

[/forum/cron.php?rand1225296001


Any ideas anyone?

--------------- Added [DATE]1225335472[/DATE] at [TIME]1225335472[/TIME] ---------------

00 23 * * * Daily Statistics Log
This script updates forum stats once per day. These are the stats that are accessed from the Admin Control Panel (New Users, New Threads, New Posts, Active Users).
10-29-2008
10:00 PM

15 * * * * Restore Temporarily Banned Users
This script restores the access of temporarily banned users once an hour.
10-29-2008
10:15 PM

17 * * * * Infractions Cleanup
Removes expired infractions twice an hour.
10-29-2008
10:17 PM

34 * * * * Attachment Views
This script updates attachment views once an hour if the delayed attachment views option is enabled. This is suggested for forums with a large number of attachments or users.
10-29-2008
10:34 PM

56 * * * * Thread Views
This script updates thread views once per hour. This option is suggested for forums with large numbers of threads or users.
10-29-2008
10:56 PM

01 0 * * * Birthdays
Sends emails to users on their birthday.
10-29-2008
11:01 PM

02 0 * * * Subscriptions
Once per day, this script removes expired paid subscriptions as well as sends out reminders about soon to expire subscriptions.
10-29-2008
11:02 PM

03 0 * * * Activation Reminder Email
This script sends reminder emails to users in the Awaiting Confirmation usergroup. An email is sent one day after the user has registered and again at five days.
10-29-2008
11:03 PM

11 0 * * * Event Reminder
This script sends out calendar event reminders twice an hour.
10-29-2008
11:11 PM

43 0 * * * Daily Digest
This script sends out new post and new thread digests once per day.
10-29-2008
11:43 PM

25 1 * * * User Promotions
This script performs usergroup promotions once per hour.
10-30-2008
12:25 AM

29 22 * * * Daily Cleanup
This script performs various cleanup tasks once per day.
10-30-2008
09:29 PM

30 0 * * Mon Weekly Digest
This script sends out new post and new thread digests once per week.
11-02-2008
11:30 PM

00, 15, 30, 45 * * * * psiStats 2006 Update (15-Minute Interval)
Performs a variety of vital accounting tasks.
N/A

00, 10, 20, 30, 40, 50 * * * * RSS Poster Robot
Reads RSS feeds from the internet and inserts them into your board as threads or announcements.
N/A

05 * * * * Hourly Cleanup
This script performs various cleanup tasks once per hour.
N/A

10 * * * * CCBill Reversal Check
This script is only needed if you enable the CCBill payment processor. It will contact the CCBill server to check for reversed payments and update your subscriptions accordingly.
N/A

20 * * * * Hourly Cleanup #2
This script performs various cleanup tasks once per hour.

--------------- Added [DATE]1225335855[/DATE] at [TIME]1225335855[/TIME] ---------------

here is a look at the processes on the server.
Code:
Top Process	%CPU 95.4	httpd [xxxx.com] [/forum/cron.php?rand1225296001]
Top Process	%CPU 95.0	httpd [xxxx.com] [/forum/cron.php?rand1225296001]
Top Process	%CPU 94.8	httpd [xxxx.com] [/forum/cron.php?rand1225296001]
mysql		11.54	7.91	0.0
Top Process	%CPU 23.4	/usr/sbin/mysqld --basedir/ --datadir/var/lib/mysql --usermysql --pid-file/var/lib/mysql/xxxxxx.com.pid --skip-external-locking
Top Process	%CPU 23.3	/usr/sbin/mysqld --basedir/ --datadir/var/lib/mysql --usermysql --pid-file/var/lib/mysql/xxxxxxxx.com.pid --skip-external-locking
Top Process	%CPU 23.1	/usr/sbin/mysqld --basedir/ --datadir/var/lib/mysql --usermysql --pid-file/var/lib/mysql/xxxxxxxxxx.com.pid --skip-external-locking
nobody		0.29	0.69	0.0
Top Process	%CPU 1.2	/usr/local/apache/bin/httpd -k start -DSSL
Top Process	%CPU 1.1	/usr/local/apache/bin/httpd -k start -DSSL
Top Process	%CPU 1.0	/usr/local/apache/bin/httpd -k start -DSSL
root		0.06	2.52	1.9
Top Process	%CPU 3.5	/usr/bin/perl /scripts/restartsrv_mysql --check
Top Process	%CPU 1.0	/usr/sbin/exim -Mc 1KvIJp-0006Ev-1f
Top Process	%CPU 0.6	/usr/bin/spamd -d --timeout-child15 --timeout-tcp15 --allowed-ips127.0.0.1 --pidfile/var/run/spamd.pid --max-children30
mailnull		0.02	0.00	0.0
Top Process	%CPU 1.0	/usr/sbin/exim -bd -q60m
Top Process	%CPU 0.5	/usr/sbin/exim -bd -q60m
canna		0.00	0.40	0.0
Top Process	%CPU 0.3	/usr/sbin/cannaserver -syslog -u canna
Top Process	%CPU 0.1	/usr/sbin/cannaserver -syslog -u canna
dbus		0.00	0.00	0.0
xfs		0.00	0.00	0.0
eximstats		0.00	0.00	0.1
mailman		0.00	0.00	0.0
unauthenticated		0.00	0.00	0.0
htt		0.00	0.00	0.0
named		0.00	0.00	0.0
Reply With Quote
  #5  
Old 10-30-2008, 02:22 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Everything looks fine in your list of tasks except it looks to me like you have both Hourly Cleanup #1 and Hourly Cleanup #2 off. Is that true? I can't think of why you would want them off - they are needed for normal vbulletin use (as compared to the RSS Bot which is fine to turn off if you aren't using it). (In fact, you can screw things up by having those cleaners off - take a look at them.)

You might want to look those cron jobs up in your access_logs. It should have the full ulr in there (ie. cron.php?rand1225296001) and then you can see what time it was supposed to run and then look at your list and see which of the tasks it was that ran.
Reply With Quote
  #6  
Old 10-30-2008, 02:47 AM
servermin servermin is offline
 
Join Date: Mar 2008
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

its been that high all hour. Server load climbed to over 100 once today. Just weird why it was working fine for months and now isn't
Reply With Quote
  #7  
Old 10-30-2008, 02:58 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, if you really have those cleaner jobs off, then you probably have some very large tables which may cause problems.

Like I said, figure out which job it is that is hanging like that. I'd also kill it if you can. If you find out which it is, try replacing the file. Also, look to see if a plugin is using a hook in one of the jobs and it is the plugin causing the problem (you can see the hook name in the file and then look at your list of plugins).

As for why it was fine and now isn't? I cannot explain why servers do the things they do and so I no longer even try. They truely baffle me at times.
Reply With Quote
  #8  
Old 10-30-2008, 03:02 AM
servermin servermin is offline
 
Join Date: Mar 2008
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I turned them off for just a minute to see if it made a difference (hourly cleanups). I've been running them.

What is the best way to look at the log and to kill it?

Sorry.
Reply With Quote
  #9  
Old 10-30-2008, 03:09 AM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

maybe you just need a server optimization in general?

Try altering the times the scripts run to make sure there is a longer pause in between them
Reply With Quote
  #10  
Old 10-30-2008, 08:36 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To me "psiStats 2006 Update " sounds like a possible resource hog. In order to find which Sched. Task is causing the problems, turn them off 1by1 for a short time to see if it makes any difference. Also you could check which tasks are supposed to run when you have this problem.
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 01:51 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.21528 seconds
  • Memory Usage 2,253KB
  • 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)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (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_postinfo_query
  • fetch_postinfo
  • 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