Question & Answer
Question
Which ports are being used by activemq and its purpose?
Answer
Check the ports used by activemq :
a. Check the PID(process id)
# ps -eaf |grep -v grep|grep activemq
root 3172 1 0 Aug12 ? 00:29:43 /opt/pcm/web-portal/perf/jre/linux-x86_64/bin/java -Xms256M -Xmx1G -Dorg.apache.activemq.UseDedicatedTaskRunner=true -Djava.util.logging.config.file=logging.properties -Dcom.sun.management.jmxremote -Dactivemq.classpath=/opt/pcm/activemq/conf; -Dactivemq.home=/opt/pcm/activemq -Dactivemq.base=/opt/pcm/activemq -jar /opt/pcm/activemq/bin/run.jar start
b. Check what ports are being used by the activemq pid :
# netstat -tulnp |grep 3172
tcp 0 0 :::37551 :::* LISTEN 3172/java
tcp 0 0 :::61616 :::* LISTEN 3172/java
tcp 0 0 :::8161 :::* LISTEN 3172/java
There are three ports used by activemq : 61616 , 8181 and a random port.
a. 61616 is the activemq port which is connected by PCMD(Platform Cluster Manager core daemon).
b. 8161 is the internal port used by activemq NIO(Non-Blocking IO) communication.
c. Any random port like 37551, 35134 etc. : This port is used to communicate with already connected clients.
Related Information
Was this topic helpful?
Document Information
Modified date:
16 September 2018
UID
isg3T1022653