Page 1 of 1

Jobs running indefinately

Posted: Sat Jun 28, 2008 3:49 pm
by ag_ram
One of the sequencer( underneath 5jobs) got triggered for every 5 mintues. Genreally it takes max of 1-2 min for completion of execution. But sometime any one of the job got hung and it runs continuously.
If i clear the resources from director, job get aborted and again in the next of couple of runs it gets hung.
After abortion of job the processes unix as below.

Code: Select all

il00os  791000       1   0 13:36:10      -  0:06 phantom SH -c 'RT_SC8/OshExecuter.sh R DUMMY  -f RT_SC8/OshScript.osh -monitorport 13400 -pf RT_SC8/jpfile -impexp_charset ISO-8859-1 -string_charset ISO-8859-1 -input_charset UTF-8 -output_charset UTF-8 -collation_sequence OFF >RT_SCTEMP/OS_oldecomm_005_ld_dom.fifo 2>&1 &'
  il00os  647864       1   0 12:32:27      -  0:09 phantom SH -c 'RT_SC6/OshExecuter.sh R DUMMY  -f RT_SC6/OshScript.osh -monitorport 13400 -pf RT_SC6/jpfile -impexp_charset ISO-8859-1 -string_charset ISO-8859-1 -input_charset UTF-8 -output_charset UTF-8 -collation_sequence OFF >RT_SCTEMP/OS_oldecomm_002_xfm_dom.fifo 2>&1 &'
Can anyone suggest to get rid of this? I can see phantom processes and also .fifo file which might have corrupted. What can be done to resolute this?[/code]

Posted: Sat Jun 28, 2008 5:34 pm
by ray.wurlod
What you really need to do is to address the reasons why the underlying jobs exhibit this intermittent behaviour.

A job sequence can not complete until all of the activities in it have completed (or a Terminator activity is executed), therefore if the underlying activity is hanging, or simply taking a long time to execute, then the job sequence itself will patiently await its completion.

Killing underlying processes is fraught with a number of dangers, primarily that you do not identify all the processes associated with the job - for example external commands (whether from the job sequence or from stages such as External Filter) do not execute osh and therefore are not picked up by the Cleanup Resources tool (which was - and really still is - intended primarily for server jobs).

If you are unable or unwilling to determine and prevent the problems in the underlying activities, then I would suggest that you create custom job control code that establishes a time within which the activity must complete and issues a stop request if this timeout occurs. You can use the generated job control routine from the job sequence as a template and paste it into the Job Control tab of a new server job as a prototype that you can edit.

Posted: Mon Jul 14, 2008 4:41 pm
by ag_ram
solution -

Once we set these 2 paramters in user defined section of Administrator, the issue is resolved.

APT_DONT_OPTIMIZE_MODIFY=1
APT_MSG_LINE=1

Not sure actual reason. If anyone have any clue on this...please share with me.
But it is always suggestable to clear the &PH& directory periodically for a project to get rid of the issue.

Thanks

Posted: Mon Jul 14, 2008 5:25 pm
by ray.wurlod
Please explain what these environment variables do, and how you came to decide on these specific settings for them, so that we all might understand your resolution and why it may have worked.

Posted: Wed Aug 27, 2008 8:30 am
by Nagaraj
APT_DONT_OPTIMIZE_MODIFY=1
APT_MSG_LINE=1

I applied these two values then also the &PH& files are getting created any idea, how to solve this so that it doesnt create any &PH& files.

Posted: Wed Aug 27, 2008 9:15 am
by chulett
No can do, those files are essential to the proper operation of the product. :?

Posted: Wed Aug 27, 2008 9:38 am
by Nagaraj
Could you please tell me how it is important. bcos we are planning to purge this on a timely basis.

Posted: Wed Aug 27, 2008 9:46 am
by chulett
Very. Purging or pruning them is fine, however, as long as the job they are associated with has completed running. Typically, people script something to run every day and remove any items X days old where X is on the order of 3 to 7, I would guess.

Posted: Wed Aug 27, 2008 9:54 am
by Nagaraj
Can we do something like remove all the files in &PH& directory?
is this a show stopper?

Posted: Wed Aug 27, 2008 10:14 am
by chulett
Only if you are certain that no jobs are running at that time.

Why so worried about this? :?

Posted: Wed Aug 27, 2008 10:28 am
by Nagaraj
yes thanks,

Can you send me any document or anything if you have, to know what &PH& is all about, bcos yesterday it had taken 2GB of data.
So being little proactive here. Thanks

Posted: Wed Aug 27, 2008 3:27 pm
by ray.wurlod
Please post these questions about &PH& in a separate thread.

Posted: Wed Aug 27, 2008 3:42 pm
by chulett
Yah, sorry... I should have noticed the hijacking in progress but we're halfway to Cuba by now. :(

Posted: Wed Aug 27, 2008 4:19 pm
by Nagaraj
Hi Ray,

I am new to this forum, i dont know exactly how to post it, so i open one top and click post new topic and continue, will check and do it correctly.

Posted: Wed Aug 27, 2008 5:00 pm
by ray.wurlod
Top left of page, "Post new topic". Make sure you are in the appropriate forum first.