1752770 Members
5558 Online
108789 Solutions
New Discussion юеВ

cron problem

 
RJA
Advisor

cron problem

Having a problem with cron. This is the error:MAXRUN (25) procs reached Fri Jun 8 10:13:00 2007
Jobs that were issued by cron never seem to complete, get run again by cron and eventually we get the same error message again. If we kill off some of the earlier scheduled jobs, cron takes off again but the jobs don't complete again. Any ideas?
2 REPLIES 2
Rob Leadbeater
Honored Contributor

Re: cron problem

Hi,

As the error message says, only 25 processes (MAXRUN), can run from the cron at the same time.

You can increase this number by modifying the max_jobs parameter in /var/adm/cron/queuedefs

However you should probably only do this as a workaround until you determine why the cron jobs are hanging... Are they doing anything out of the ordinary ?

Hope this helps,

Regards,

Rob
Ivan Ferreira
Honored Contributor

Re: cron problem

What happens if you run the job manually? It hangs too or completes?

Can you redirect stdin and stdout to some log file for the job runned by cron so you can know where it stopped?
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?