Stopped Services for Autosys but ports are still being used

Document ID : KB000016476
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

Sometimes if you attempt to stop and restart Autosys Scheduler/Application/Agent on UNIX it may fail stating that the port is already is use.

 

Example:

When starting the Autosys Scheduler:

The services would not start as port 7507 was not available

 

Question:

Sometimes if you attempt to stop and restart Autosys Scheduler/Application Server/System Agent on UNIX it may fail stating that the port is already is use.

Example:

When starting the Autosys Scheduler:

The services would not start as port 7507 was not available

 

When checking the service, the scheduler or application server or system agent is not currently running.

 

 

Environment:
Solaris, Aix
Answer:

This may happen if there had been users connected to or the UWCC interface. In these cases the operating system waits a specified period of time before timing those connections out and releasing the port. By default HP and AIX time the connections out with 15 seconds. But the default time for Solaris is around 11 minutes. The operating system's tcp timeout parameters can be adjusted. AIX uses the "no" command to adjust the tcp_timewait parameter. HP/Solaris use the "ndd" command to adjust the tcp_* parameters. Please refer to the man pages for command usage. 

Solaris Example: 

To make the change permanent (in the case of reboots/restarts) add the 2 lines to the bottom of the /etc/default/inetinit file and reboot.

/usr/sbin/ndd -set /dev/tcp tcp_fin_wait_2_flush_interval 1500 

/usr/sbin/ndd -set /dev/tcp tcp_close_wait_interval 1500 

 

* The values for the Solaris parameter is expressed in milliseconds. This is not the case for all platforms. Please refer to your operating system vendor's documentation. 

Configuration files for operating systems: 

AIX - /etc/rc.net 

Solaris - /etc/default/inetinit 

Tru64 UNIX - Use the sysconfigdb or dxkerneltuner command HP-UX - /etc/rc.config.d/nddconf