Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .