Crontab não disparando processos

Iniciado por mvitor, 20 de Maio de 2008, 09:30

tópico anterior - próximo tópico

mvitor

Olá a toda comunidade. Tenho uma máquina com ubuntu instalado com kernel versão 2.6.18-5-686.
Tenho tido alguns problemas relacionados ao meu crontab. Tenho alguns processos que são disparados durante a madrugada, e em alguns dias estes processos são disparados normalmente, outros não. O meu crontab está agendado da seguinte maneira:

00   01    *   *   *   /usr/bin/perl   /home/spider/scap/scap.pl -r 79b 
15   01   *   *   *   /usr/bin/perl  /home/spider/scap/scap.pl -r 32   
00   02    *   *   *   /usr/bin/perl   /home/spider/scap/scap.pl -r  137b
30   02    *   *   *   /usr/bin/perl   /home/spider/scap/scap.pl -r 35b
00   03    *   *   *   /usr/bin/perl   /home/spider/scap/scap.pl -r 27 
30   04   *   *   *   /usr/bin/perl  /home/spider/scap/scap.pl -r 525b
00   05   *   *   *   /usr/bin/perl /home/spider/scap/scap.pl -r 555
00   05    *   *   *   /usr/bin/perl   /home/spider/scap/scap.pl -r 120b

Não sei porquê motivos os processos agendados entre 01:00 e 03:00 hrs não tem sido disparados, olhando o /var/log/syslog:

May 20 00:30:01 spiderserver /USR/SBIN/CRON[25809]: (spider) CMD (/usr/bin/perl   /home/spider/scap/scap.pl -r 350b #booknew::ciadoslivros;)
May 20 00:57:28 spiderserver -- MARK --
May 20 01:00:02 spiderserver /USR/SBIN/CRON[25879]: (spider) CMD (/usr/bin/perl   /home/spider/scap/scap.pl -r 79b  #booknew::submarino)
May 20 01:15:02 spiderserver /USR/SBIN/CRON[25902]: (spider) CMD (/usr/bin/perl  /home/spider/scap/scap.pl -r 32   #magazineluiza)
May 20 01:17:01 spiderserver /USR/SBIN/CRON[25910]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
May 20 01:37:29 spiderserver -- MARK --
May 20 01:57:29 spiderserver -- MARK --
May 20 02:00:01 spiderserver /USR/SBIN/CRON[27056]: (spider) CMD (/usr/bin/perl   /home/spider/scap/scap.pl -r  137b  #booknew::saraiva)
May 20 02:17:01 spiderserver /USR/SBIN/CRON[27096]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
May 20 02:30:01 spiderserver /USR/SBIN/CRON[27102]: (spider) CMD (/usr/bin/perl   /home/spider/scap/scap.pl -r 35b  #booknew::americanas)
May 20 02:57:30 spiderserver -- MARK --
May 20 03:00:02 spiderserver /USR/SBIN/CRON[27118]: (spider) CMD (/usr/bin/perl   /home/spider/scap/scap.pl -r 27   #rihappy)
May 20 03:17:01 spiderserver /USR/SBIN/CRON[27129]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
May 20 03:37:31 spiderserver -- MARK --
May 20 03:57:31 spiderserver -- MARK --
May 20 04:17:01 spiderserver /USR/SBIN/CRON[27147]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
May 20 04:30:01 spiderserver /USR/SBIN/CRON[27154]: (spider) CMD (/usr/bin/perl  /home/spider/scap/scap.pl -r 525b   #martinsfontes)
May 20 04:57:34 spiderserver -- MARK --
May 20 05:00:02 spiderserver /USR/SBIN/CRON[27169]: (spider) CMD (/usr/bin/perl   /home/spider/scap/scap.pl -r 120b #booknew::siciliano;)
May 20 05:00:02 spiderserver /USR/SBIN/CRON[27170]: (spider) CMD (/usr/bin/perl /home/spider/scap/scap.pl -r 555  #melhoramentos)
May 20 05:02:06 spiderserver kernel: oom-killer: gfp_mask=0x200d2, order=0
May 20 05:02:07 spiderserver kernel:  [<c014450b>] out_of_memory+0x25/0x13e
May 20 05:02:07 spiderserver kernel:  [<c0145978>] __alloc_pages+0x1f5/0x275
May 20 05:02:07 spiderserver kernel:  [<c0151b4e>] read_swap_cache_async+0x2f/0xac
May 20 05:02:07 spiderserver kernel:  [<c014af8a>] swapin_readahead+0x3a/0x58
May 20 05:02:07 spiderserver kernel:  [<c01154b6>] do_page_fault+0x18a/0x481
May 20 05:02:07 spiderserver kernel:  [<c011532c>] do_page_fault+0x0/0x481
May 20 05:02:07 spiderserver kernel:  [<c01037f9>] error_code+0x39/0x40
May 20 05:02:07 spiderserver kernel:  [<c01026e4>] do_notify_resume+0x3af/0x5d7
May 20 05:02:07 spiderserver kernel:  [<c0120621>] do_setitimer+0x16d/0x4a4
May 20 05:02:07 spiderserver kernel:  [<c016a953>] sys_select+0xd1/0x182
May 20 05:02:07 spiderserver kernel:  [<c0102d0a>] work_notifysig+0x13/0x19
May 20 05:02:07 spiderserver kernel: Mem-info:
May 20 05:02:07 spiderserver kernel: DMA per-cpu:
May 20 05:02:07 spiderserver kernel: cpu 0 hot: high 0, batch 1 used:0
May 20 05:02:07 spiderserver kernel: cpu 0 cold: high 0, batch 1 used:0
May 20 05:02:07 spiderserver kernel: cpu 1 hot: high 0, batch 1 used:0
May 20 05:02:07 spiderserver kernel: cpu 1 cold: high 0, batch 1 used:0
May 20 05:02:07 spiderserver kernel: DMA32 per-cpu: empty
May 20 05:02:07 spiderserver kernel: Normal per-cpu:
May 20 05:02:07 spiderserver kernel: cpu 0 hot: high 186, batch 31 used:30
May 20 05:02:07 spiderserver kernel: cpu 0 cold: high 62, batch 15 used:47
May 20 05:02:07 spiderserver kernel: cpu 1 hot: high 186, batch 31 used:43
May 20 05:02:07 spiderserver kernel: cpu 1 cold: high 62, batch 15 used:61
May 20 05:02:07 spiderserver kernel: HighMem per-cpu:
May 20 05:02:07 spiderserver kernel: cpu 0 hot: high 186, batch 31 used:8
May 20 05:02:07 spiderserver kernel: cpu 0 cold: high 62, batch 15 used:57
May 20 05:02:07 spiderserver kernel: cpu 1 hot: high 186, batch 31 used:30
May 20 05:02:07 spiderserver kernel: cpu 1 cold: high 62, batch 15 used:60
May 20 05:02:07 spiderserver kernel: Free pages:       48024kB (424kB HighMem)
May 20 05:02:07 spiderserver kernel: Active:265626 inactive:229293 dirty:0 writeback:0 unstable:0 free:12006 slab:1705 mapped:21 pagetables:869
May 20 05:02:07 spiderserver kernel: DMA free:8064kB min:68kB low:84kB high:100kB active:2912kB inactive:2540kB present:16384kB pages_scanned:6564 all_unreclaimable? yes
May 20 05:02:07 spiderserver kernel: lowmem_reserve[]: 0 0 880 1999
May 20 05:02:07 spiderserver kernel: DMA32 free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
May 20 05:02:07 spiderserver kernel: lowmem_reserve[]: 0 0 880 1999
May 20 05:02:07 spiderserver kernel: Normal free:39536kB min:3756kB low:4692kB high:5632kB active:473292kB inactive:357776kB present:901120kB pages_scanned:941005 all_unreclaimable? no
May 20 05:02:07 spiderserver kernel: lowmem_reserve[]: 0 0 0 8959
May 20 05:02:07 spiderserver kernel: HighMem free:424kB min:512kB low:1708kB high:2904kB active:586300kB inactive:556856kB present:1146816kB pages_scanned:1557616 all_unreclaimable? yes
May 20 05:02:07 spiderserver kernel: lowmem_reserve[]: 0 0 0 0
May 20 05:02:07 spiderserver kernel: DMA: 0*4kB 0*8kB 0*16kB 0*32kB 0*64kB 1*128kB 1*256kB 1*512kB 1*1024kB 1*2048kB 1*4096kB = 8064kB
May 20 05:02:07 spiderserver kernel: DMA32: empty
May 20 05:02:07 spiderserver kernel: Normal: 2*4kB 7*8kB 1*16kB 1*32kB 0*64kB 0*128kB 0*256kB 1*512kB 0*1024kB 5*2048kB 7*4096kB = 39536kB
May 20 05:02:07 spiderserver kernel: Swap cache: add 20818764, delete 20818764, find 13400833/14543012, race 7+3483
May 20 05:02:07 spiderserver kernel: Free swap  = 0kB
May 20 05:02:07 spiderserver kernel: Total swap = 979956kB
May 20 05:02:07 spiderserver kernel: Free swap:            0kB
May 20 05:02:07 spiderserver kernel: 516080 pages of RAM
May 20 05:02:07 spiderserver kernel: 286704 pages of HIGHMEM
May 20 05:02:07 spiderserver kernel: 4977 reserved pages
May 20 05:02:07 spiderserver kernel: 493 pages shared
May 20 05:02:07 spiderserver kernel: 0 pages swap cached
May 20 05:02:07 spiderserver kernel: 0 pages dirty
May 20 05:02:07 spiderserver kernel: 0 pages writeback
May 20 05:02:07 spiderserver kernel: 21 pages mapped
May 20 05:02:07 spiderserver kernel: 1705 pages slab
May 20 05:02:07 spiderserver kernel: 869 pages pagetables
May 20 05:02:07 spiderserver kernel: Out of Memory: Kill process 27172 (scapd.pl) score 409546 and children.
May 20 05:02:07 spiderserver kernel: Out of memory: Killed process 27172 (scapd.pl).
May 20 05:02:07 spiderserver kernel: oom-killer: gfp_mask=0x200d2, order=0
May 20 05:02:07 spiderserver kernel:  [<c014450b>] out_of_memory+0x25/0x13e
May 20 05:02:07 spiderserver kernel:  [<c0145978>] __alloc_pages+0x1f5/0x275
May 20 05:02:07 spiderserver kernel:  [<c0151b4e>] read_swap_cache_async+0x2f/0xac
May 20 05:02:07 spiderserver kernel:  [<c014af8a>] swapin_readahead+0x3a/0x58
May 20 05:02:07 spiderserver kernel:  [<c014c351>] __handle_mm_fault+0x4db/0x740
May 20 05:02:07 spiderserver kernel:  [<c027f00a>] schedule+0x84e/0x8fe
May 20 05:02:07 spiderserver kernel:  [<c01154b6>] do_page_fault+0x18a/0x481
May 20 05:02:07 spiderserver kernel:  [<c011532c>] do_page_fault+0x0/0x481
May 20 05:02:07 spiderserver kernel:  [<c01037f9>] error_code+0x39/0x40
May 20 05:02:07 spiderserver kernel:  [<c011db68>] do_syslog+0x130/0x30d
May 20 05:02:07 spiderserver kernel:  [<c012d92d>] autoremove_wake_function+0x0/0x2d
May 20 05:02:07 spiderserver kernel:  [<c018751a>] kmsg_read+0x0/0x36
May 20 05:02:07 spiderserver kernel:  [<c015a6ac>] vfs_read+0x9f/0x141
May 20 05:02:07 spiderserver kernel:  [<c015aaf8>] sys_read+0x3c/0x63
May 20 05:02:07 spiderserver kernel:  [<c0102c11>] sysenter_past_esp+0x56/0x79
May 20 05:02:07 spiderserver kernel: Mem-info:
May 20 05:02:07 spiderserver kernel: DMA per-cpu:
May 20 05:02:07 spiderserver kernel: cpu 0 hot: high 0, batch 1 used:0
May 20 05:02:07 spiderserver kernel: cpu 0 cold: high 0, batch 1 used:0
May 20 05:02:07 spiderserver kernel: cpu 1 hot: high 0, batch 1 used:0
May 20 05:02:07 spiderserver kernel: cpu 1 cold: high 0, batch 1 used:0
May 20 05:02:07 spiderserver kernel: DMA32 per-cpu: empty
May 20 05:02:07 spiderserver kernel: Normal per-cpu:
May 20 05:02:07 spiderserver kernel: cpu 0 hot: high 186, batch 31 used:30
May 20 05:02:07 spiderserver kernel: cpu 0 cold: high 62, batch 15 used:47
May 20 05:02:07 spiderserver kernel: cpu 1 hot: high 186, batch 31 used:43
May 20 05:02:07 spiderserver kernel: cpu 1 cold: high 62, batch 15 used:61
May 20 05:02:07 spiderserver kernel: HighMem per-cpu:
May 20 05:02:07 spiderserver kernel: cpu 0 hot: high 186, batch 31 used:8
May 20 05:02:07 spiderserver kernel: HighMem: 0*4kB 1*8kB 2*16kB 0*32kB 0*64kB 1*128kB 1*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 424kB

Alguém faz idéia do que pode estar acontencendo ? Estouro de memória ?
Agradeço por qualquer dica e avanços

Márcio Vitor