Join this group to access featured content and participate in discussions related to DMX.

120 Members
Join Us!

Kill and DMX Job from Command Line

I have executed a long running DMX Job via the commnad line (ie. dmxjob /run J_Master.dxj) and want to kill it.  What's the "cleanest" way to kill all the asscoaited processes?  As you can see below, there are a ton of processes that got kicked off...

top - 09:38:27 up 4 days, 22:24,  1 user,  load average: 0.21, 0.36, 0.40 Tasks: 153 total,   3 running, 149 sleeping,   0 stopped,   1 zombie Cpu(s):  0.2%us, 65.5%sy, 26.3%ni,  8.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st Mem:   3924632k total,  1168720k used,  2755912k free,   125616k buffers Swap:  4194300k total,        0k used,  4194300k free,   749940k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND 25619 fraud     24   4  106m 1672 1364 R 29.7  0.0  14:06.76 /bin/ksh /apps_01/dmx/scripts/HashPan.sh 19026 fraud     24   4  106m 1672 1364 D 29.3  0.0  14:14.33 /bin/ksh /apps_01/dmx/scripts/HashPan.sh 25839 fraud     24   4  360m  37m 6128 S  0.9  1.0   0:22.11 ssshglue -r /tmp/sync273222274  2455 fraud     24   4  107m 1440  696 S  0.5  0.0   0:00.07 /bin/ksh /apps_01/dmx/jobs/UDT///J_UDT_GridMaster.dxj 19208 fraud     24   4  360m  35m 6128 S  0.5  0.9   0:22.58 ssshglue -r /tmp/sync2935918295  1979 fraud     24   4  328m  23m  16m S  0.0  0.6   0:00.10 dmxjob /RUN /apps_01/dmx/jobs/UDT///J_UDT_GridMaster.dxj /COMPRESSWORKFILES OFF  2274 fraud     24   4  107m 2180 1416 S  0.0  0.1   0:01.06 /bin/ksh /apps_01/dmx/jobs/UDT///J_UDT_GridMaster.dxj  2443 fraud     24   4  107m 1772  984 S  0.0  0.0   0:00.00 /bin/ksh /apps_01/dmx/jobs/UDT///J_UDT_GridMaster.dxj  2445 fraud     24   4  107m 1468  724 S  0.0  0.0   0:00.00 /bin/ksh /apps_01/dmx/jobs/UDT///J_UDT_GridMaster.dxj  2446 fraud     24   4  107m 1772  984 S  0.0  0.0   0:00.00 /bin/ksh /apps_01/dmx/jobs/UDT///J_UDT_GridMaster.dxj  2447 fraud     24   4  107m 1444  700 S  0.0  0.0   0:00.17 /bin/ksh /apps_01/dmx/jobs/UDT///J_UDT_GridMaster.dxj  2451 fraud     24   4  107m 1444  700 S  0.0  0.0   0:00.09 /bin/ksh /apps_01/dmx/jobs/UDT///J_UDT_GridMaster.dxj  2454 fraud     24   4  107m 1444  700 S  0.0  0.0   0:00.09 /bin/ksh /apps_01/dmx/jobs/UDT///J_UDT_GridMaster.dxj  2457 fraud     24   4  107m 1436  692 S  0.0  0.0   0:00.12 /bin/ksh /apps_01/dmx/jobs/UDT///J_UDT_GridMaster.dxj  2458 fraud     24   4  107m 1444  700 S  0.0  0.0   0:00.07 /bin/ksh /apps_01/dmx/jobs/UDT///J_UDT_GridMaster.dxj  2459 fraud     24   4  107m 1444  700 S  0.0  0.0   0:00.07 /bin/ksh /apps_01/dmx/jobs/UDT///J_UDT_GridMaster.dxj  2460 fraud     24   4  107m 1444  700 S  0.0  0.0   0:00.12 /bin/ksh /apps_01/dmx/jobs/UDT///J_UDT_GridMaster.dxj  2462 fraud     24   4  107m 1444  700 S  0.0  0.0   0:00.09 /bin/ksh /apps_01/dmx/jobs/UDT///J_UDT_GridMaster.dxj 13101 fraud     24   4     0    0    0 Z  0.0  0.0   0:00.00 [HashPan.sh] <defunct> 13103 fraud     24   4  106m 1672 1364 R  0.0  0.0   0:00.00 /bin/ksh /apps_01/dmx/scripts/HashPan.sh 16653 fraud     20   0  107m 1936 1560 S  0.0  0.0   0:00.06 -ksh 16719 fraud     24   4  106m 1732 1412 S  0.0  0.0   0:00.00 /bin/ksh /apps_01/dmx/scripts/Exec_DMXJob.sh -a UDT -j J_ADC_Master.dxj -p ADC.properties 16736 fraud     24   4  157m 8584 6648 S  0.0  0.2   0:00.06 dmxjob /RUN /apps_01/dmx/jobs/UDT/J_ADC_Master.dxj 16770 fraud     24   4  106m 1948 1416 S  0.0  0.0   0:00.47 /bin/ksh /apps_01/dmx/jobs/UDT/J_ADC_Master.dxj 16787 fraud     24   4  106m 1212  708 S  0.0  0.0   0:00.00 /bin/ksh /apps_01/dmx/jobs/UDT/J_ADC_Master.dxj 16788 fraud     24   4  106m 1204  700 S  0.0  0.0   0:00.11 /bin/ksh /apps_01/dmx/jobs/UDT/J_ADC_Master.dxj 16882 fraud     24   4  157m 8676 6644 S  0.0  0.2   0:00.07 dmxjob /RUN /apps_01/dmx/jobs/UDT//J_ADC_Extract_Data.dxj 16916 fraud     24   4  106m 1968 1416 S  0.0  0.1   0:00.50 /bin/ksh /apps_01/dmx/jobs/UDT//J_ADC_Extract_Data.dxj 16942 fraud     24   4  106m 1296  768 S  0.0  0.0   0:00.00 /bin/ksh /apps_01/dmx/jobs/UDT//J_ADC_Extract_Data.dxj 16943 fraud     24   4  106m 1296  768 S  0.0  0.0   0:00.00 /bin/ksh /apps_01/dmx/jobs/UDT//J_ADC_Extract_Data.dxj 16944 fraud     24   4  106m 1224  700 S  0.0  0.0   0:00.14 /bin/ksh /apps_01/dmx/jobs/UDT//J_ADC_Extract_Data.dxj 17140 fraud     24   4  222m 9228 6824 S  0.0  0.2   0:00.33 dmxjob /RUN /apps_01/dmx/jobs/UDT///J_ADC_Case.dxj 17141 fraud     24   4  223m 9288 6900 S  0.0  0.2   0:00.36 dmxjob /RUN /apps_01/dmx/jobs/UDT///J_ADC_Exposure.dxj 18261 fraud     24   4  328m  23m  16m S  0.0  0.6   0:00.09 dmxjob /RUN /apps_01/dmx/jobs/UDT///J_UDT_GridMaster.dxj /COMPRESSWORKFILES OFF 18295 fraud     24   4  107m 2180 1416 S  0.0  0.1   0:01.07 /bin/ksh /apps_01/dmx/jobs/UDT///J_UDT_GridMaster.dxj 18391 fraud     24   4  107m 1768  984 S  0.0  0.0   0:00.00 /bin/ksh /apps_01/dmx/jobs/UDT///J_UDT_GridMaster.dxj 18392 fraud     24   4  107m 1464  720 S  0.0  0.0   0:00.00 /bin/ksh /apps_01/dmx/jobs/UDT///J_UDT_GridMaster.dxj 18393 fraud     24   4  107m 1768  984 S  0.0  0.0   0:00.00 /bin/ksh /apps_01/dmx/jobs/UDT///J_UDT_GridMaster.dxj 18394 fraud     24   4  107m 1440  696 S  0.0  0.0   0:00.10 /bin/ksh /apps_01/dmx/jobs/UDT///J_UDT_GridMaster.dxj 18397 fraud     24   4  107m 1440  696 S  0.0  0.0   0:00.06 /bin/ksh /apps_01/dmx/jobs/UDT///J_UDT_GridMaster.dxj 18400 fraud     24   4  107m 1444  700 S  0.0  0.0   0:00.08 /bin/ksh /apps_01/dmx/jobs/UDT///J_UDT_GridMaster.dxj 18401 fraud     24   4  107m 1436  692 S  0.0  0.0   0:00.10 /bin/ksh /apps_01/dmx/jobs/UDT///J_UDT_GridMaster.dxj 18402 fraud     24   4  107m 1440  696 S  0.0  0.0   0:00.08 /bin/ksh /apps_01/dmx/jobs/UDT///J_UDT_GridMaster.dxj 18403 fraud     24   4  107m 1444  700 S  0.0  0.0   0:00.07 /bin/ksh /apps_01/dmx/jobs/UDT///J_UDT_GridMaster.dxj 18404 fraud     24   4  107m 1440  696 S  0.0  0.0   0:00.08 /bin/ksh /apps_01/dmx/jobs/UDT///J_UDT_GridMaster.dxj 18405 fraud     24   4  107m 1444  700 S  0.0  0.0   0:00.08 /bin/ksh /apps_01/dmx/jobs/UDT///J_UDT_GridMaster.dxj 18406 fraud     24   4  107m 1440  696 S  0.0  0.0   0:00.08 /bin/ksh /apps_01/dmx/jobs/UDT///J_UDT_GridMaster.dxj 19210 fraud     24   4  290m  30m 6424 S  0.0  0.8   0:05.64 ssshglue -r /tmp/sync1206718295 24838 fraud     20   0 15040 1300  956 R  0.0  0.0   0:01.25 top 25838 fraud     24   4  290m  30m 6424 S  0.0  0.8   0:06.40 ssshglue -r /tmp/sync317882274

You need to be a member of Syncsort Community to add comments!

Join Syncsort Community

Email me when people reply –

Replies

  • Brad,

    You should be able to perform a kill (not -9) on the main process - typically your initiating shell command continaing dmxjob /run and that should trap the signal and send it to all subprocesses.  You could also kill the dmxjob /run command processes.  It is tough to tell which that is in this view due to the cut and paste but if you use ps-ef you should be able to get parent ids in the list.  You should never need to kill the ssshglue processes.  The process tree should be shell script initiating dmxjob -> dmxjob (or multiple if running jobs in parallel) -> optional dmxjob (if using subjobs) -> ssshglue (think of these as the tasks).  Killing the main job should allow DMX to kill the children it spawned...

    Hope this helps and is not too delayed. :)

This reply was deleted.

To access Syncsort Knowledge Base, visit:

My Support