I'm working with mobile IPv6 and was dealing with lots of zombie connections. I set keepAlive to true and want to test whether old connections are being discarded.

I'm using lsof to list the process connections, but I can't tell how old the connection is.

Is there a way to verify this?

link|improve this question
feedback

1 Answer

netstat -nlp

  • -n for not resolving the ips
  • -l for listening sockets. Skip this if you want to list outgoing connections
  • -p to show executable name (last column) and process id

edit:

ow. WHEN. That kind of information is not kept... Well at least for TCP/IP. If it's a unix socket you can try with socket file times (created, modified ...)

link|improve this answer
Thanks, but it doesn't show the connection date. – Marcio Aguiar May 9 '11 at 15:07
sorry. didn't read correctly. what you want is not possible – NickSoft May 10 '11 at 8:42
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.