1839327 Members
3167 Online
110138 Solutions
New Discussion

Cron limit reached

 
SOLVED
Go to solution
Eric Crosby_3
Advisor

Cron limit reached

We've run into the limit on the number of children cron can have! This is shown in the cron log as:
c queue max run limit reached

We do not have anything in the queuedefs file, so it's taking the default. Which appears to be 100 between at, batch and cron, correct?

We use cron heavily on a few of our servers and need to increase this number. If we cannot do this with HP Cron, does anyone know if Gnu cron has this same limit?

Thank you!
4 REPLIES 4
Geoff Wild
Honored Contributor

Re: Cron limit reached

You should be ale to add a c. line in the /var/adm/cron/queuedefs file to increase the limit.

c.200j1n


man queuedefs



Rgds...Geoff

Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Pete Randall
Outstanding Contributor

Re: Cron limit reached

The man page for queuedefs(4) says:

q.[njobj][nicen][nwaitw]

njob The maximum number of jobs that can be run simultaneously in that queue. Although any number can e specified here, the total number of jobs that can be run on all the queues is limited to 100.


Pete

Pete
Pete Randall
Outstanding Contributor
Solution

Re: Cron limit reached

In 11iV3 however:

njob The maximum number of jobs that can be run simultaneously in that queue. Although any number can be specified here, cron (see cron(1M)) by default limits the number of jobs that can be run on all the queues to 100. This limitation can be removed by setting the variable DISABLE_MAXJOB_LIMIT to 1 in the /etc/default/cron file.


Pete

Pete
Armin Kunaschik
Esteemed Contributor

Re: Cron limit reached

BTW, this configuration option seems to be there at least since 11.11:

/etc/default/cron


##
# Cron allows maximum of 100 jobs to be actively running at any instance.
# Hence even if njob is set to >100 in queuedefs(4), cron daemon will still
# be able to execute maximum of 100 jobs only.
# Setting DISABLE_MAXJOB_LIMIT to 1 will set the limit for number of active
# jobs to be same as the njob defined in queuedefs(4).
# DISABLE_MAXJOB_LIMIT can be set to 1 or 0.
#
DISABLE_MAXJOB_LIMIT=0


My 2 cents,
Armin
And now for something completely different...