java - Number of CLOSE_WAIT with lsof -


i

lsof | grep close_wait | wc -l

on ubuntu 14.04 lts

i got pid , tid displayed. there 70 close_waits on java proc x number of threads.

however, if do

lsof -i | grep close_wait |wc -l

i got 1, java process (no tid).

does mean can't reliably figure out fs leak doing lsof -i? have use "lsof"?

as sidebar, know why elb not closing connection?

java 9645 9863 ubuntu 133u ipv4 19375 0t0 tcp ip-10-20-187-89:51548->ec2-100-200-86-25.compute-1.amazonaws.com:https (close_wait) java 9645 9864 ubuntu 133u ipv4 19375 0t0 tcp ip-10-20-187-89:51548->ec2-100-200-86-25.compute-1.amazonaws.com:https (close_wait) java 9645 9865 ubuntu 133u ipv4 19375 0t0 tcp ip-10-20-187-89:51548->ec2-100-200-25.compute-1.amazonaws.com:https (close_wait) java 9645 9902 ubuntu 133u ipv4 19375 0t0 tcp ip-10-20-187-89:51548->ec2-100-200-25.compute-1.amazonaws.com:https (close_wait)

thanks,

i'd recommend consulting a diagram one. tcp connection not considered closed each side sends fin , gets ack.

as stated here. close_wait indicates remote end has sent fin , been ack'd local end, local end has not sent fin.

you're not seeing rest of close_wait entries lsof -i because remote address not being shown. shows empty.

see also:

https://superuser.com/questions/173535/what-are-close-wait-and-time-wait-states

https://serverfault.com/questions/450055/lot-of-fin-wait2-close-wait-last-ack-and-time-wait-in-haproxy


Comments

Popular posts from this blog

php - Zend Framework / Skeleton-Application / Composer install issue -

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -