linux - Can we get elapsed time from netstat command -


first let me explain scenario. have application using tcp gets hanged due close_wait connections. netstat can trace remote host close_wait happens. want know elapsed time (time of occurrence of close_wait on particular port). if know exact time close_wait happens, can analyze logs corresponding time stamp find possible reason same.

i know can run netstat @ regular intervals. way also, can exact time window of close_wait connections.

is there simpler way need using netstat or other commands ?

you watch traffic directly tcpdump. if know remote ip and/or port can narrow down traffic.

tcpdump -i eth0 src 192.168.1.1 , port 80 

Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -