netstat -ntap doesn't show pid/process name for some connections?
- by depesz
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.