netstat -ntap doesn't show pid/process name for some connections?

Posted by depesz on Server Fault See other posts from Server Fault or by depesz
Published on 2009-11-17T15:58:47Z Indexed on 2010/06/07 19:23 UTC
Read the original article Hit count: 431

Filed under:
|
|
|

I have ubuntu/hardy server, with kernel 2.6.24-23-server and netstat:

# netstat --version
net-tools 1.60
netstat 1.42 (2001-04-15)

The problem is that we have a lot of ESTABLISHED connections that don't show PID nor Program name in netstat -ntap output. Netstat was called from root, there are no chroots, grsecurity, nor anything like this (or so I was told :).

Any idea on what might be wrong?

UPDATE

lsof -n -i works ok, and shows pid/process name for the connections.

© Server Fault or respective owner

Related posts about linux

Related posts about networking