Unknown TCP-Ports

Moin,

I just checked the TCP-Ports my HiveMQ process is using. So I found thees 3:

root@boulder ~ # ps -eaf | grep hivemq
hivemq 2358 1 0 Mar05 ? 00:47:04 java -Dhivemq.home=/opt/hivemq -Djava.net.preferIPv4Stack=true -noverify --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens jdk.management/com.sun.management.internal=ALL-UNNAMED --add-exports java.base/jdk.internal.misc=ALL-UNNAMED -Djava.security.egd=file:/dev/./urandom -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9010 -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -XX:+CrashOnOutOfMemoryError -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/opt/hivemq/heap-dump.hprof -jar /opt/hivemq/bin/hivemq.jar

root@boulder ~ # netstat -tulpen | grep 2358
tcp 0 0 0.0.0.0:9010 0.0.0.0:* LISTEN 1238 31902850 2358/java
tcp 0 0 0.0.0.0:8883 0.0.0.0:* LISTEN 1238 31902903 2358/java
tcp 0 0 0.0.0.0:39987 0.0.0.0:* LISTEN 1238 31902849 2358/java

8883: Okay, the TLS secured mqtt port
9010: Do I need this jmxremote port spreading to the world?
39987: What is it good for?

Grateful for any advice

Micha

Just for the record: Solved the problem by disabling jmx in the run.sh. So the jmx port is gone as well as the high (random) port.

2 Likes

Please can you help
i have broker runing in amazon aws instance and I restart the instance after restart the broker refused to reconnect
I run /etc/init.d/hivemq status
and result is
hivemq.service - HiveMQ Community Edition
Loaded: loaded (/etc/systemd/system/hivemq.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2024-07-28 15:43:48 UTC; 37min ago
Main PID: 858 (java)
Tasks: 35 (limit: 1134)
CGroup: /system.slice/hivemq.service
└─858 java -Dhivemq.home=/opt/hivemq -XX:HeapDumpPath=/opt/hivemq/heap-dump.hprof -XX:ErrorFile=/opt/hivemq/hs_err_pid%p.log -Djava.net.…ar

How can solve this ?