Re: ports not releasing



On Fri, Jul 28, 2006 at 01:48:52PM -0400, Vincent D'Antonio wrote:

We are having a problem with our recharge_agent process. When it
terminates abnormally the ports that were in use by this process are
left open and listening, so when we attempt to restart the process it
dies almost imediately because the specified ports are already in use.
Apparently the UNIX Kernel is not releasing the ports once the process
dies, so my question to you would be . Can these ports be released
without rebooting the server???

Below are the ports that we use for this process.



sdp_rech_agent_port=18001

sdp_rech_agent_telnet_port=18002

sdp_query_agent_port=18003

sdp_query_agent_telnet_port=18004
What "Unix" are you using?
Try lsof to bring out Information about what processes are on your open Ports.
# lsof -i:18001

Then try to kill the Processes that are using these Ports.

Example from my machine:
<snip>
# lsof -i:25
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
sendmail 155690 root 7u IPv4 0xf10000f300385b58 0t0 TCP *:smtp
(LISTEN)
<snip>

Cheers,
ku
--
Darth Vader:
I find your lack of faith disturbing.
_________________________________________________________________________
Dieses Mail/Fax ist ausschließlich für den genannten Empfänger bestimmt.
Es enthält persönliche oder vertrauliche Informationen. Jede unerlaubte
Verbreitung des Inhalts, auch teilweise, ist untersagt. Falls Sie dieses
Mail/Fax versehentlich erhielten, informieren Sie bitte unverzüglich den
Absender und löschen Sie dieses Mail/Fax endgültig von jedem Rechner, auch
Ihrem Mail-/Faxserver.
This mail/fax contains private or confidential information and is intended
only for the person to which it is addressed. Any unauthorized
dissemination, even partly, is prohibited. If you received this mail/fax
in error, please contact the sender and delete this mail/fax finally from
any computer, including your mail-/faxserver.



Relevant Pages

  • Re: SSA configuration help!
    ... Loop ... Falls Sie dieses ... Mail/Fax versehentlich erhielten, ...
    (AIX-L)
  • Re: Starting iptables
    ... it is not clear that you need a firewall at all. ... just don't open any ports. ... "netstat -putl" will let you find out what listening ports are open. ... mysql is listening on tcp port 3306. ...
    (Debian-User)
  • Re: UPHClean log question
    ... A quick check to see which ports the computer is listening on is to run ... > Windows Firewall saying that the application svchost.exe has been blocked ... > extract from UPHClean might indicating a specific problem that should be ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: UDP Ports, closing Win2K Server (No IIS)
    ... What's listening on UDP 995? ... The worm spreads via email but some antivirus vendors report ... against using IPSec as a firewall, and blocking just one or two ports here ...
    (microsoft.public.inetserver.iis.security)
  • Re: Win2k Netstat sockets interpretation
    ... I have deleted "file and print sharing" under "internet connections and disbled most recognizable "remote access" services under 'services.msc' but ZA detects a few remote access modules running and gives them permission if select "OK" to the suggested query. ... notice randomly ports assigned to urls or ip addresss. ... 'netstat' on Win2K provides a view on the state of the *TDI interface*, ... something appearing as 0.0.0.0 listening means "an outstanding request to ...
    (alt.computer.security)