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
Post a Comment