Determine What Cron Jobs Are Killing Server And When
Jan 8, 2009
We're running on Linux/Apache/MySQL/RoR and have a number of cron jobs that run throughout the day on our server. We've been noticing lately that at certain times of the day the site becomes really slow. When I'm online with my engineers I can mention this to them and they can check and see and say "Oh yeah, it's job XYZ that's spiking the server load."
That's great but much of the time when I notice the sluggishness my developers are offline (we're in different time zones). I'm wondering if there's a fairly easy way to track this when they're not online so we can say "Yup, last night at 10 PM your time when you noticed that it was job ABC." There has to be something that allows you to do this right?
View 3 Replies
ADVERTISEMENT
Feb 21, 2008
i find on the certain time,
the mysql of server will run a lot of query,
and the io and load will become very high,
after the time point,
all the io and load with be smoth,
so,i wonder if any Cron job has been add (by certain account) to run something,
View 4 Replies
View Related
Apr 5, 2009
Hey everyone, my friend's dad is looking for a web host that will allow his cron jobs to run every second. Most hosts apparently dont allow cron jobs faster than 5 seconds apart.
How often a host can run cron jobs isn't really advertised on their sites so I'm having a bit of trouble finding a host. I've resorted to just sending emails to sales addresses asking about it.
Does anyone know how I can find a host like this?
View 7 Replies
View Related
Oct 24, 2009
I have a number of PHP scripts that I would like to automatically run daily at midnight. I am currently running a VPS server but have no idea how to achieve this. I do have webmin on my sever but am unsure of what command I need to run.
View 2 Replies
View Related
Jan 5, 2008
I have a machine, that for some reason stopped running it's cron jobs for some reason, and I can figure out how to get them working again.
My /etc/crontab file is as follows.
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
Here are the contents of a sample user cron file.
MAILTO="USER"
10 4 * * * php -q -f /home/USER/public_html/tools/updtransfers.php /home/USER/public_html >/dev/null 2>&1
10 5 * * * php -q -f /home/USER/public_html/tools/updateexp.php /home/USER/public_html >/dev/null 2>&1
10 5 * * * php -q -f /home/USER/public_html/tools/invoice_cron.php /home/USER/public_html >/dev/null 2>&1
and another
*/5 * * * * /usr/local/bin/php -c /home/USER/php.ini /home/USER/public_html/poller.php > /dev/null 2>&1
I've checked my logs, and I can find no errors anywhere. When I run the commands manually via SSH, they work perfectly, they simply are not being run automatically the way they are supposed to be.
I have checked, and the crond service is running. I have tried restarting it, but it seams to have no affect. I really have no idea what the issue is. The only thing I seam to have found at one point, was the possibility that the files within the /etc/cron.d directory might be CHMOD'ed wrong, but I haven't found anything to confirm this either way.
[root@server cron.d]# ls -all
total 60
drwxr-xr-x 2 root root 4096 Dec 17 03:07 .
drwx--x--x 94 root root 12288 Jan 3 09:28 ..
-rw-r--r-- 1 root root 61 Jun 22 2007 csf_update
-rw-r--r-- 1 root root 81 Apr 11 2007 lsm
-rw-r--r-- 1 root root 79 Jun 22 2007 prm
-rw------- 1 root root 366 Feb 23 2007 sa-update
-rw-r--r-- 1 root root 82 Jun 22 2007 spri
-rw-r--r-- 1 root root 188 Nov 16 23:14 sysstat
[root@server cron.d]#
View 3 Replies
View Related
Jun 24, 2007
I have jobs that fail every now and then. I get this email:
Looking up www.xxxx.com
www.xxxx.com
Making HTTP connection to www.xxxx.com
Sending HTTP request.
HTTP request sent; waiting for response.
Alert!: Unexpected network read error; connection aborted.
Can't Access [url]
Alert!: Unable to access document.
lynx: Can't access startfile
View 3 Replies
View Related
May 14, 2008
Is there any software which would control cron jobs? I've a problem with cpu load where some customers are running more than enough of them at the same time.
Is there any software which would be able to:
If there are more than x crons running at the same time, put others in queue and execute after there are no more than x-1 are running?
View 1 Replies
View Related
Dec 7, 2008
how to set cron jobs in window....
View 6 Replies
View Related
Jun 16, 2008
I have a new dedicated server and am trying to set up a cron job via CPanel on on of my accounts (we'll call it "abc" account).
In the Cron job area, where it asks for the command to run, I enter this:
/home/abc/public_html/forum/class/sendnotice.php
But when the job runs, it doesn't seem to be executing the .php file. Instead, I get stuff like this via email:
/home/acb/public_html/forum/class/sendnotice.php: line 1: ?php: No such file or directory
/home/abc/public_html/forum/class/sendnotice.php: line 2: ////////////////////////////: is a directory
/home/abc/public_html/forum/class/sendnotice.php: line 3: //: is a directory
/home/abc/public_html/forum/class/sendnotice.php: line 4: //: is a directory
/home/abc/public_html/forum/class/sendnotice.php: line 5: //: is a directory
/home/abc/public_html/forum/class/sendnotice.php: line 6: //: is a directory
/home/abc/public_html/forum/class/sendnotice.php: line 7: //: is a directory
/home/abc/public_html/forum/class/sendnotice.php: line 8: //: is a directory
/home/abc/public_html/forum/class/sendnotice.php: line 9: //: is a directory
So it is as if the cron job is reading each line of the .php file instead of just running it. Am I doing something wrong in setting up the cron job to run that file or could it be a configuration issue with the new server?
View 3 Replies
View Related
Dec 24, 2014
How I can set CronJobs? Have never to it before.
Here is what i have from developer:
Final Step: Setup Cron Tasks.
Number of cron (background) tasks to ensure redundant files are deleted, accounts are auto downgraded etc. Details of these are below.
0 0 * * * php /var/www/vhosts/MYDOMAIN/httpdocs/admin/tasks/auto_prune.cron.php >> /dev/null 2>&1
0 0 * * * php /var/www/vhosts/MYDOMAIN/httpdocs/admin/tasks/create_internal_notifications.cron.php >> /dev/null 2>&1
0 * * * * php /var/www/vhosts/MYDOMAIN/httpdocs/admin/tasks/delete_redundant_files.cron.php >> /dev/null 2>&1
0 0 * * * php /var/www/vhosts/MYDOMAIN/httpdocs/admin/tasks/downgrade_accounts.cron.php >> /dev/null 2>&1
*/5 * * * * php /var/www/vhosts/MYDOMAIN/httpdocs/admin/tasks/process_file_queue.cron.php >> /dev/null 2>&1
View 19 Replies
View Related
Oct 25, 2008
I need a reliable, free host where I can run wget on a URL (less than 1k) every 10 minutes via a cron job.
Can anyone reccommend anything?
View 15 Replies
View Related
Apr 11, 2009
I have a customer billing system.
I would like crons to run at midnight so that the invoices are on schedule and have the right dates etc.
My server is overseas and my time is plus 14 hrs here.
I have set my software up to plus 14 hrs time difference also.
What should I set my crons to?
View 4 Replies
View Related
Mar 12, 2008
How do you insert variables in cron jobs? e.g. the current date.
Let's say I want to back up a file and append the date to it.
0 0 * * * cp /some/file.txt /some/outputfile_[DATE].txt >/dev/null
(note that I'm not sure the cp will actually work like that, it's just an example)
Where outputfile_[DATE].txt has the date in it.
Are there variables cron can use for date, hour, minute, etc.?
View 4 Replies
View Related
Jan 28, 2008
from top:
12478 root 35 19 2004 680 308 R 39 0.0 8:54.95 gzip
using anywhere from 30-50% of my cpu for nearly 10 min now. but, no memory usage.
any ideas? should i kill the pid?
site is running pretty slow as a result of this.
View 3 Replies
View Related
Dec 15, 2007
24 hours ago something wired happend..
For some reason httpd is causing high serverload.
ATM : 22:44:17 up 22:17, 2 users, load average: 6.23, 6.12, 8.88
U
Will keep gooing up and httpd need to be restartet when serverload comes up to 30.
The traffic on the server is normal, no changes is made on the server.
View 5 Replies
View Related
Dec 7, 2007
Opt 248
3gb ram
250gb sata II
I have a fairly unique problem. My server runs great 95% of the time. Loads average under 1. However backups have become a server killer. I use cpanel scheduled backup at early morning hours. The reason backups kill my server is that I have 300,000+ (and counting) images in a directory. They are all small pngs generated by LaTeX. It takes my server several hours to backup the images. I usually even have to stop apache to free up some power. This problem is only going to get worse as I get more images. Maybe I could upgrade proc or upgrade to faster HD? That would be costly, hopefully not.
Should I hire a professional backup service? Costly, and would that help? Or is there a way of storing the images or doing the cpbackup I am doing wrong?
View 3 Replies
View Related
Feb 5, 2008
if it was possible to kill a server running WHMCS by executing the cron.php via cronjob on a remote server once every minute.
I just wanted to see if this was potentially harmful, so I can submit it to Matt without sounding like an idiot...
View 3 Replies
View Related
Apr 22, 2009
How users can determine speed of host provider?
It can be ping in windows command prompt.
Is this good way to determine speed of server?
Is something else to check speed?
View 8 Replies
View Related
Sep 25, 2009
I have always found this odd and do not understand enough to figure it out.
Any knowledgeable people would be cool.
My datacenter has given me 2amp circuit for my computer. It seems to run fine on it.
Looking at the back of my power supply it says the following
520Watt max
Input rating
100-240v~,50-60Hz
7A-3A
Output rating
+3.3V & +5V combined 150W max
12V combined current 39A max
(and a lot of other stuff on amps and volts for output).
Now, Watts = Volts * Amps.
So if I have 520watts and 12 volts would be 43 amps
If it means 520 watts and 3.3volts it would be 157 amps
However it seems to max at 39amps on the back for output.
I imagine input is all that matters here and at 520 watts and 100 to 240volts that would be
5.2 amps to 2.16 amps
And the thing says 7amps to 3 amps on the back for input.
So....I imagine that is the max it can pull before dying.
However, I have 4 drives, 4 ram sticks, and 2 quad core cpus all going and I would figure I am at least halfway or more of the power use.
And the power says it starts at 3amps anyway.
But I only get 2amps.
View 9 Replies
View Related
Sep 1, 2008
Assuming a linux server / apache / php / mysql setup
I'm wondering 1) how you can find out which php script is causing problems, i assume infinite looping, crashing a server and 2) are there any measures you can take (maybe in the php or apache configuration) that can prevent such a thing from happening in the first place, other than writing good code obviously?
View 3 Replies
View Related
Apr 10, 2007
a log file analysis program that can tell me the exact time an ip address accesses my server and how many times that particular ip address hits the server.
Does anybody know of a package that supports this, or is it even possible?
View 3 Replies
View Related
Jun 3, 2008
How can I detect port speed on my CentOS server ? I need to know it's 10Mbit/s or 100Mbit/s
View 6 Replies
View Related