Random java port | Alfresco 6.1.1 (r9d03d2fd-b168)

cancel
Showing results for 
Search instead for 
Did you mean: 
samuelw
Active Member II

Random java port | Alfresco 6.1.1 (r9d03d2fd-b168)

Hi,

I see a random (change every restart of tomcat) java port, any idea which Alfresco modul/service is listen there?

netstat -tulpen | grep java
tcp6       0      0 127.0.0.1:8009          :::*                    LISTEN      112        314340     28571/java          
tcp6       0      0 127.0.0.1:7983          :::*                    LISTEN      112        316328     28693/java          
tcp6       0      0 127.0.0.1:8080          :::*                    LISTEN      112        314330     28571/java          
tcp6       0      0 :::36275                :::*                    LISTEN      112        313296     28571/java          
tcp6       0      0 127.0.0.1:8983          :::*                    LISTEN      112        314519     28693/java          
tcp6       0      0 127.0.0.1:8443          :::*                    LISTEN      112        314332     28571/java          
tcp6       0      0 127.0.0.1:8005          :::*                    LISTEN      112        325507     28571/java

After restart...

netstat -tulpen | grep java
tcp6       0      0 127.0.0.1:8009          :::*                    LISTEN      112        344909     29588/java          
tcp6       0      0 127.0.0.1:7983          :::*                    LISTEN      112        344956     29715/java          
tcp6       0      0 127.0.0.1:8080          :::*                    LISTEN      112        345564     29588/java          
tcp6       0      0 127.0.0.1:8983          :::*                    LISTEN      112        347356     29715/java          
tcp6       0      0 127.0.0.1:8443          :::*                    LISTEN      112        345566     29588/java          
tcp6       0      0 127.0.0.1:8005          :::*                    LISTEN      112        356690     29588/java          
tcp6       0      0 :::45573                :::*                    LISTEN      112        344900     29588/java
telnet 127.0.0.1 45573
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
quit
Connection closed by foreign host.
2 Replies
afaust
Master

Re: Random java port | Alfresco 6.1.1 (r9d03d2fd-b168)

Can you provide the Java Opts / Command Line arguments with which Tomcat/Alfresco has been started? If you have enabled JMX, then a random port may be allocated for JMX access (in addition to a more common port handling RMI registry so that the JMX port can be dynamically looked up by clients).

samuelw
Active Member II

Re: Random java port | Alfresco 6.1.1 (r9d03d2fd-b168)

Learn from day to day.

Initial I use this script [1] to install Alfresco and it set the jmxremote=true.

JAVA_OPTS="${JAVA_OPTS} -Dalfresco.home=${ALF_HOME} -Dcom.sun.management.jmxremote=true"

If i understand this correct, Alfresco do not need jmxremote, right?

[1] https://github.com/loftuxab/alfresco-ubuntu-install

EDIT:

Set -Dcom.sun.management.jmxremote=false, the random port is still there.

/opt/alfresco# ps ax | grep "jmxremote=true"
   3865 pts/0    S+     0:00 grep --color=auto jmxremote=true