SUMMARY: lsof can't find open port

From: John Marrett <jmarrett_at_mediagrif.com>
Date: Tue Aug 28 2001 - 14:51:15 EDT
I guess we will never know what caused this problem. The machine core dumped
(Probably caused by the diagnostic commands sun had me run) and since the
reboot the socket is free ;)

Sun was as helpless as I was at finding a solution. It has been established
that this was somehow caused by a bug in the application or the OS. The port
was not associated to any process, but still somehow in listen mode.

I have sent a core file in for 'processing' but I doubt much will come from
it.

-JohnF

-----Original Message-----
From: sunmanagers-admin@sunmanagers.org
[mailto:sunmanagers-admin@sunmanagers.org]On Behalf Of John Marrett
Sent: Monday, August 27, 2001 5:03 PM
To: "John Marrett"@mrbill.net; sunmanagers@sunmanagers.org
Subject: UNSOLVED/UPDATE: lsof can't find open port


Still have port 9950 open in listen mode. lsof still can't find the
process that is listening on this port.

I have received a number of tips on how to improve my lsof usage, but no
one seems to know what is wrong or have seen this problem before.

If you have any idea how to find a process listening to a tcp/ip port
without using lsof, or know of any kind fo workaround please let me
know.

I would really prefer to avoid rebooting this server.

-JohnF

-----Original Message-----
From: sunmanagers-admin@sunmanagers.org
[mailto:sunmanagers-admin@sunmanagers.org]On Behalf Of John Marrett
Sent: Friday, August 24, 2001 4:15 PM
To: sunmanagers@sunmanagers.org
Subject: lsof can't find open port


I have a program which is listening on port 9950.

I can't find this program using lsof, however netstat shows it and I can
telnet to it.

Here are some shell commands I have tried:

ttimdb4:johnf$ telnet localhost 9950
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

(in another shell)
ttimdb4# lsof -i -n -P | grep 9950
telnet    15901   johnf    3u  inet 0x3000692e800        0t0  TCP
127.0.0.1:58758->127.0.0.1:9950 (ESTABLISHED)
<trimmed other processes>

ttimdb4# netstat -an | grep 9950
      *.9950               *.*                0      0     0      0
LISTEN
10.1.13.17.9950      10.1.13.17.46099     32768      0 32602      0
CLOSE_WAIT
10.1.13.17.9950      10.1.13.17.46174     32768      0 32120      0
CLOSE_WAIT
10.1.13.17.9950      10.1.13.17.48418     32768      0 32120      0
CLOSE_WAIT
10.1.13.17.9950      10.1.13.17.48709     32768      0 32602      0
CLOSE_WAIT
10.1.13.17.9950      10.1.13.17.49472     32768      0 32120      0
CLOSE_WAIT
10.1.13.17.9950      10.1.13.17.51317     32768      0 32602      0
CLOSE_WAIT
10.1.13.17.9950      10.1.13.17.52706     32768      0 32120      0
CLOSE_WAIT
10.1.13.17.9950      10.1.13.17.53103     32768      0 32742      0
CLOSE_WAIT
10.1.13.17.9950      10.1.13.49.1303       8760      0  8760      0
CLOSE_WAIT
10.1.13.17.9950      10.1.13.17.53908     32768      0 32763      0
CLOSE_WAIT
127.0.0.1.9950       127.0.0.1.58741      32768      0 32768      0
CLOSE_WAIT
127.0.0.1.58758      127.0.0.1.9950       32768      0 32768      0
ESTABLISHED
127.0.0.1.9950       127.0.0.1.58758      32768      0 32768      0
ESTABLISHED

Please help me, I can't start the application that should be running on
this port.

As always I will summarize, thanks in advance,

-JohnF
Received on Tue Aug 28 19:51:15 2001

This archive was generated by hypermail 2.1.8 : Wed Mar 23 2016 - 16:25:02 EDT