Re: Clearing AIX ports?
From: Laurenz Albe (albe_at_culturallNOSPAM.com)
Date: 02/16/05
- Next message: AIX Programmer: "Using dbx when your application needs arguments (argv)"
- Previous message: Syn: "OpenSSL 0.9.7x on AIX 5"
- In reply to: ekulis_at_apple.com: "Clearing AIX ports?"
- Next in thread: Ed Kulis: "Re: Clearing AIX ports?"
- Reply: Ed Kulis: "Re: Clearing AIX ports?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 16 Feb 2005 08:41:32 +0000 (UTC)
ekulis@apple.com wrote:
> Is there a way to clear a port on AIX without knowing what process is
> using it?
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
- Next message: AIX Programmer: "Using dbx when your application needs arguments (argv)"
- Previous message: Syn: "OpenSSL 0.9.7x on AIX 5"
- In reply to: ekulis_at_apple.com: "Clearing AIX ports?"
- Next in thread: Ed Kulis: "Re: Clearing AIX ports?"
- Reply: Ed Kulis: "Re: Clearing AIX ports?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|