Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

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


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 ...)

share|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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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