hi all,
   i am monitoring the ports that are used by kafka server on my machine.
When i do,

sudo netstat -ntp | grep 9092

it shows,

tcp        0      0 192.168.122.1:9092      192.168.122.6:59158
ESTABLISHED 27413/java
tcp        0      0 192.168.122.1:9092      192.168.122.1:58338
ESTABLISHED 27413/java
*tcp        1      0 192.168.122.1:57821 <http://192.168.122.1:57821>
192.168.122.1:9092 <http://192.168.122.1:9092>      CLOSE_WAIT  27413/java *


The last entry in CLOSE_WAIT state surprises me because

sudo lsof -i tcp:57821
​  shows​


COMMAND   PID USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
java    27413 root   42u  IPv4 3266648      0t0  TCP
sk-box:57821->sk-box:9092 (CLOSE_WAIT)

indicates, that the port 57821 is owned by kafka process
​ (pid - 27413)​
. Does kafka use extra ports other than listening port, 9092 to talk to
itself?

thanks,
saravana

Reply via email to