2

I enable a JMX remote port on my java application :

-Dcom.sun.management.jmxremote.port=1099

With netstat, I can see that it's opening 3 ports :

$> netstat -plant | grep java

tcp6  0  0 :::1099       :::*   LISTEN      10009/java      
tcp6  0  0 :::42351      :::*   LISTEN      10009/java      
tcp6  0  0 :::55704      :::*   LISTEN      10009/java 

The 1099 is the one I asked with the system property, the other one are random ports. In my case, I can see the 42351 port is used for connections with jconsole or visualvm, but I never see any established socket on the third one.

So I would like to focus my question on this third port : what is it used for ?

Alexis Hassler
  • 752
  • 5
  • 16
  • 2
    Duplicate of http://stackoverflow.com/questions/20884353/why-java-opens-3-ports-when-jmx-is-configured ? – Wim Deblauwe Jun 25 '15 at 17:29
  • Yep. Definitively duplicated, with a nice explanation : one random port for local attachment and one random port for remote connection. – Alexis Hassler Jun 25 '15 at 18:43

0 Answers0