Re: Clearing AIX ports?

From: Laurenz Albe (albe_at_culturallNOSPAM.com)
Date: 02/16/05


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



Relevant Pages

  • Re: Problem with socket
    ... Be aware that those port numbers are part of the IANA-assigned range. ... socket operations on sockets for which there are no handles... ... The result of using comma lists is ... you have used the completely meaningless word "crash" to describe your ...
    (microsoft.public.vc.mfc)
  • RE: call is blocked in recvfrom() and no further proceedings in Win CE
    ... In windows CE, I'm able to send a request but I'm unable to receive it. ... Create another socket & bind with server IP address. ... > My program has to send request to service through port 5070(in this port only ...
    (microsoft.public.windowsce.embedded)
  • Re: ISA Event
    ... applying ISA SP1 resolved the issue. ... So it's worth asking - is this SBS ... > Web Proxy service failed to bind its socket to 192.168.4.9 port 443. ...
    (microsoft.public.backoffice.smallbiz2000)
  • Re: Freebsd IP Forwarding performance (question, and some info) [7-stable, current, em, smp]
    ... INADDR_ANY and a specific port. ... sendtoon a specific address and port on a socket that has been bound to ... bogus exit code) and adds a sleep after send failure. ... unless HZ is too small or the queue is too large. ...
    (freebsd-net)
  • Re: RMI binding to SAME port but DIFFERENT IP address on SAME host
    ... A socket is identified by its IP address, its port number, and its ... via the Sockets API. ... > port number for each listening interface, ...
    (comp.lang.java.programmer)