Page 1 of 1

cron/load

Posted: Thu Jan 19, 2017 5:53 pm
by Kelevra
hello, My server go down and that whats the support said...... Can you help me with that?
ps:I am already set this to sleep mode

------------------------------------------
A "cron.php" job was set up to run once a minute, but it takes longer than a minute to run.

Consequently, more and more copies of this job started up in parallel until it finally overwhelmed the server.

Could you please rewrite your cron.php job so that it doesn't start back up if it is already running? Alternatively, could we please set it to run less often than once a minute?

Re: cron/load

Posted: Thu Jan 19, 2017 6:00 pm
by Kelevra
Can I set these crons to run like 10-15min ?

Re: cron/load

Posted: Sat Jan 21, 2017 6:52 pm
by admin
Well, yes, but it may miss times when it's time to save history and so on
BTW what version\build do you use?

Re: cron/load

Posted: Mon Jan 23, 2017 7:34 pm
by Kelevra
Version 1.52

We have fixed this adding a checker to scj.sh

#!/bin/bash
PIDFILE=/tmp/scjcron.pid
if [ -f $PIDFILE ]
then
echo Already running ;
else
touch /tmp/scjcron.pid

ALL CRONS HERE

rm -f /tmp/scjcron.pid ;
fi

Re: cron/load

Posted: Tue Jan 24, 2017 4:57 am
by admin
Well, that's an option but you may lose history stats an so on