Chinaunix首页 | 论坛 | 博客
  • 博客访问: 77520
  • 博文数量: 17
  • 博客积分: 506
  • 博客等级: 下士
  • 技术积分: 175
  • 用 户 组: 普通用户
  • 注册时间: 2007-12-13 08:58
文章分类

全部博文(17)

文章存档

2011年(10)

2008年(1)

2007年(6)

我的朋友

分类:

2011-04-13 09:34:33

cron: 0481-087
 
 
 
故障现象:
需要每周重启一次机器,要不然所有用户的cron 任务就根本不执行.若reboot后,不做任何修改配置,系统会自动去执行cron,但3-5天后,系统又莫明其妙的不执行cron了,reboot后,系统又恢复正常。
查看/var/adm/cron/log 文件,里面报错信息如下:
# tail log
! 0481-095 The cron job is being rescheduled.
Fri Mar  2 09:22:00 BEIST 2007
! cron: 0481-087 The c queue maximum run limit has been reached.
Fri Mar  2 09:22:00 BEIST 2007
! 0481-095 The cron job is being rescheduled.
Fri Mar  2 09:22:00 BEIST 2007
! cron: 0481-087 The c queue maximum run limit has been reached.
Fri Mar  2 09:22:00 BEIST 2007
! 0481-095 The cron job is being rescheduled.
Fri Mar  2 09:22:00 BEIST 2007
! cron: 0481-087 The c queue maximum run limit has been reached.
Fri Mar  2 09:22:00 BEIST 2007
! 0481-095 The cron job is being rescheduled.
 
解决方法:
crontab 没有定时执行是因为“! cron: 0481-087 The c queue maximum run limit has been reached.”。
修改/var/adm/cron/queuedefs 文件。在里面加上这样一句:"c.200j20n60w",然后kill  PID,其中PID为cron进程号,新的cron设置就会生效。
Maximum number of jobs in the queue by default was 50. The errorc messages 0481-087, 0481-095 usually appears when this max. number is reached. So you can increase the maximum number of jobs in /var/adm/cron/queuedefs , vi the queuedefs file  and change the b to c and the 50 to 200.   by including this entry"c.200j20n60w"  in the file. After making the changes to the file, killcron and it will respawn again with the new settings.
 
 
阅读(1783) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~