Close Process Streams variable in awenv.ini

Document ID : KB000088742
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
Close Process Streams variable in awenv.ini
Resolution:
Detailed Description and Symptoms
 
CloseProcessStreams variable in the awenv.ini file 

Investigation

?Agents go to SRVC DOWN

When you add the CloseProcessStreams variable to awenv.ini, we launch an additional java thread in the AgentService process. It monitors all open processes on the box (like an open ofile, pm file, pr file, any sh <file name>, etc.) and depending on the amount of activity being processed on the Agent this list can be quite long.

 

It may be necessary to set this variable to ensure that there is enough time to process jobs and ensure they are no longer running and close the stdout, stderr and stdin streams. On some Operating Systems, such as Solaris machines, open file handles are not being closed by our AgentService process, therefore we recommend that CloseProcessStreams be set to 300 (or 5 minutes). That way it polls through the list every 5 minutes and gives the AgentService enough time to process jobs and close their open processes.


Solution

?Add CloseProcessStreams=300 to the awenv.ini file