免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 6307 | 回复: 9
打印 上一主题 下一主题

crond进程很多 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-03-12 16:45 |只看该作者 |倒序浏览
[root@test ~]# ps -aux |grep crond|wc -l
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.3/FAQ
39
看看什么问题啊?

论坛徽章:
0
2 [报告]
发表于 2007-03-12 16:46 |只看该作者
smmsp     8293  0.0  0.2  8452 2792 ?        S    16:35   0:00 sendmail: ./l2C8Z1S9008293 [127.0.0.1]: user open  
root      8322  0.4  0.0     0    0 ?        Zs   16:35   0:00 [mrtg] <defunct>
root      8325  0.3  0.0     0    0 ?        Zs   16:35   0:00 [mrtg] <defunct>
smmsp     8450  0.0  0.2  8304 2696 ?        S    16:37   0:00 /usr/sbin/sendmail -FCronDaemon -i -odi -oem -oi -t
smmsp     8511  0.0  0.2  6908 2700 ?        S    16:37   0:00 /usr/sbin/sendmail -FCronDaemon -i -odi -oem -oi -t
root      8527  0.0  0.1  6684 1076 ?        S    16:38   0:00 crond
root      8528  0.0  0.1  6684 1076 ?        S    16:38   0:00 crond
root      8529  0.0  0.1  6684 1076 ?        S    16:38   0:00 crond
root      8530  0.0  0.1  6684 1076 ?        S    16:38   0:00 crond
root      8531  0.0  0.1  6684 1076 ?        S    16:38   0:00 crond
root      8533  0.0  0.1  6684 1076 ?        S    16:38   0:00 crond
root      8534  0.0  0.1  6684 1076 ?        S    16:38   0:00 crond
500       8570  1.0  0.2  7664 2696 ?        S    16:38   0:00 /usr/sbin/sendmail -FCronDaemon -i -odi -oem -oi -t
smmsp     8571  3.0  0.2  8404 2700 ?        S    16:38   0:00 /usr/sbin/sendmail -FCronDaemon -i -odi -oem -oi -t

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
3 [报告]
发表于 2007-03-12 17:49 |只看该作者
pgrep crond
or
crontab -l

论坛徽章:
0
4 [报告]
发表于 2007-03-13 10:34 |只看该作者
[root@test ~]# pgrep crond
9051
25223
25224
25374
25375
25674
25677
26023
26025
26027
26028
26053
26256
26257
26633
26634
26635
26636
26653
26654
26655
26656
26657
26658
26671
26672
26673
26674
26675
26677
26678
26679
26680
26681
26782
26783
26784
26907
26908
26909
26910
26911
27018
27019
27020
27021
27350
27351
27352
27353
27354
27356
27687
27688
27689
27690
27691
27692
27693
27694
27695
27696
27697
27698
27928
27963
27964
27965
27968
27971
28213
28214
28215
28394
28395
28396
28397
28398
28495
28496
28497
28498
28526
28527
28528
28529
28530
28531
28532
28533
28534
28535
28536
28537
28539
28540
28541
28542
28543
28544

论坛徽章:
0
5 [报告]
发表于 2007-03-13 10:35 |只看该作者
好多crond进程啊,还有sendmail的
500      27050  0.0  0.2  7924 2804 ?        S    10:28   0:00 sendmail: ./l2D2Sj8M027050 [127.0.0.1]: user open  
smmsp    27057  0.0  0.2  7980 2792 ?        S    10:28   0:00 sendmail: ./l2D2Snjd027057 [127.0.0.1]: user open  
smmsp    27060  0.0  0.2  6704 2788 ?        S    10:28   0:00 sendmail: ./l2D2Sn2s027060 [127.0.0.1]: user open  
smmsp    27214  0.0  0.2  8232 2792 ?        S    10:28   0:00 sendmail: ./l2D2SujA027214 [127.0.0.1]: user open  
smmsp    27305  0.0  0.2  6596 2792 ?        S    10:28   0:00 sendmail: ./l2D2SxMT027305 [127.0.0.1]: user open  
smmsp    27312  0.0  0.2  8104 2788 ?        S    10:28   0:00 sendmail: ./l2D2T0gC027312 [127.0.0.1]: user open


500      27739  0.0  0.2  7596 2700 ?        S    10:30   0:00 /usr/sbin/sendmail -FCronDaemon -i -odi -oem -oi -t
smmsp    27806  0.0  0.2  6944 2696 ?        S    10:30   0:00 /usr/sbin/sendmail -FCronDaemon -i -odi -oem -oi -t
smmsp    27807  0.0  0.2  7324 2692 ?        S    10:30   0:00 /usr/sbin/sendmail -FCronDaemon -i -odi -oem -oi -t
smmsp    27908  0.0  0.2  7180 2700 ?        S    10:30   0:00 /usr/sbin/sendmail -FCronDaemon -i -odi -oem -oi -t
root     27928  0.0  0.1  6492 1080 ?        S    10:30   0:00 crond
smmsp    27945  0.0  0.2  7588 2704 ?        S    10:30   0:00 /usr/sbin/sendmail -FCronDaemon -i -odi -oem -oi -t
smmsp    27947  0.0  0.2  7672 2692 ?        S    10:30   0:00 /usr/sbin/sendmail -FCronDaemon -i -odi -oem -oi -t

论坛徽章:
0
6 [报告]
发表于 2007-03-13 10:36 |只看该作者
而且sendmail我已经关闭了。
这台机器是一台做mrtg监控的,每分钟只监控4个点,所以正常情况不会有这么多的crond进程。

[ 本帖最后由 ideovo 于 2007-3-13 10:38 编辑 ]

论坛徽章:
0
7 [报告]
发表于 2007-03-13 10:57 |只看该作者
检查你的 mrtg 中的脚本写得有没有问题,我以前在 AIX 上碰过,由于 mrtg 一次执行的时间较长,

而 interval 不够大,造成 AIX 上有很多的 telnetd 进程存在。后来修改脚本和 interval 就可以了。

论坛徽章:
0
8 [报告]
发表于 2007-03-16 15:28 |只看该作者
root      1409  0.0  0.0     0    0 ?        Z    15:06   0:00 [crond] <defunct>
root      1704  0.0  0.1  5576 1080 ?        S    15:10   0:00 crond
root      1790  0.0  0.1  5580 1080 ?        S    15:11   0:00 crond
root      2237  0.0  0.0     0    0 ?        Z    15:12   0:00 [crond] <defunct>
root      2238  0.0  0.0     0    0 ?        Z    15:12   0:00 [crond] <defunct>
root      2239  0.0  0.0     0    0 ?        Z    15:12   0:00 [crond] <defunct>
root      2271  0.0  0.0     0    0 ?        Z    15:13   0:00 [crond] <defunct>
root      2272  0.0  0.1  5576 1072 ?        S    15:13   0:00 crond
root      2273  0.0  0.0     0    0 ?        Z    15:13   0:00 [crond] <defunct>
root      2290  0.0  0.1  5576 1072 ?        S    15:14   0:00 crond
root      2291  0.0  0.0     0    0 ?        Z    15:14   0:00 [crond] <defunct>
root      2292  0.0  0.1  5576 1072 ?        S    15:14   0:00 crond
root      2293  0.0  0.0     0    0 ?        Z    15:14   0:00 [crond] <defunct>
root      2338  0.1  0.0     0    0 ?        Zs   15:14   0:00 [php] <defunct>
root      2364  0.0  0.1  5576 1072 ?        S    15:15   0:00 crond
root      2365  0.0  0.1  5576 1072 ?        S    15:15   0:00 crond
root      2366  0.0  0.1  5576 1072 ?        S    15:15   0:00 crond
root      2367  0.0  0.1  5576 1072 ?        S    15:15   0:00 crond
root      2368  0.0  0.1  5576 1072 ?        S    15:15   0:00 crond
root      2369  0.0  0.1  5576 1072 ?        S    15:15   0:00 crond
root      2370  0.0  0.1  5576 1072 ?        S    15:15   0:00 crond
root      2371  0.0  0.1  5576 1072 ?        S    15:15   0:00 crond
root      2372  0.0  0.1  5580 1080 ?        S    15:15   0:00 crond
root      2493  0.0  0.1  5576 1072 ?        S    15:16   0:00 crond
root      2494  0.0  0.1  5584 1084 ?        S    15:16   0:00 crond
root      2495  0.0  0.1  5580 1072 ?        S    15:16   0:00 crond
smmsp     2698  0.0  0.2  8388 2792 ?        S    15:16   0:00 sendmail: ./l2G7Gfos002698 [127.0.0.1]: user open  

怎么会有这么多的defunct进程啊,而且最近crontab -e 或者-l ,都超级的慢

论坛徽章:
0
9 [报告]
发表于 2013-04-08 11:03 |只看该作者
回复 8# ideovo


    请问僵尸进程的ppid  是 crond 进程 这个进程的pid能删吗?@chenyx  

论坛徽章:
21
白羊座
日期:2013-08-23 15:49:17金牛座
日期:2013-10-08 17:00:03处女座
日期:2013-10-12 11:54:11CU十二周年纪念徽章
日期:2013-10-24 15:41:34午马
日期:2013-11-27 14:07:21巨蟹座
日期:2013-12-04 10:56:03水瓶座
日期:2013-12-04 15:58:00亥猪
日期:2014-05-24 16:02:3115-16赛季CBA联赛之辽宁
日期:2016-11-07 13:52:53戌狗
日期:2013-08-23 16:15:31白羊座
日期:2013-08-24 21:59:24巨蟹座
日期:2013-08-25 16:34:24
10 [报告]
发表于 2013-04-08 12:06 |只看该作者
那估计是你crontab 里的脚本的问题吧,corontab 本身不会出现这种情况啊。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP