When we try and start the Peoplesoft Tuxedo App Server often the boot
fails because of some port that's hung.
Short of a reboot, no.
Think about it: if a port is in use, some process is using it.
If you'd 'steal' that port, you would probably crash that process.
I don't think you want to crash an unknown process, it might be an
important one.
> When we try and start the Peoplesoft Tuxedo App Server often the boot
> fails because of some port that's hung.
You should investigate the problem instead of using brute force.
Find out which process has the port in use (the lsof open source program
can help you a lot in this). Then decide if you need that process or not,
and if not, stop it gracefully and prevent it from restarting.
Your description is not very detailed, so your problem could also be
that the process which used the port is already gone, but the socket is
still in TIME_WAIT state. Sockets cannot be reused immediately by default,
that is to prevent certain kinds of attacks.
So maybe you just stopped the server and want to start it again, and run
into the timeout?
You see, I'm just guessing wildly. Analyze your situation, come up with
some more information, and maybe somebody can give you better help.
Yours,
Laurenz Albe
Your wild guesses hit the mark.
I've got to find out how to determine which process is using the port.
After I kill all the ps -ef detectable procsess id's I sometimes still
can't boot Peoplesoft because the ports are hung.
I'll check into the time wait states and use the lsof command.
As to the brute force, we've reserved ports for Peoplesoft and when I'm
building a new decdicated server I know that I've hung the ports in the
range during the far greater than normal shutdown/startup cycles.
But your tips will help me understand the port usage better and that's
better in the long run.
Thanks again,
-ed
http://www-1.ibm.com/servers/aix/products/aixos/linux/download.html
ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/lsof/lsof-4.61-3.aix5.1.ppc.rpm
lsof -i:port_number
HTH
Mark Taylor
>Is there a way to clear a port on AIX without knowing what process is
>using it?
Use "netstat -An", then rmsock (5.2+) to remove the socket.
--
Mr. Rajendra Singh
rmsock PCB tcpcb
If the address is in use you will get the proc name and PID, if its
not, then the sock will be removed.