Hi,

I don‘t believe there is an easy way for Artemis (or any network software for 
that matter) to somehow stop listening on the TCP network interface and then 
start listening, when network interface is available again. How you even know 
if that’s the same interface?

The proper way would be to monitor if Artemis service is alive and, if it is 
dead (be it network issue or anything else, like OOM for example), inform the 
required people. Of course, you can try to automate automatic restart with 
let’s say systemd unit file, but how do you know why the Artemis service was 
stopped? Maybe it’s storage issue and restarting it would produce more harm.

Hope that helps.

--
    Vilius

From: Gunawan, Rahman (GSFC-SEWP)[Halvik Corp] <[email protected]>
Sent: Wednesday, October 15, 2025 9:06 PM
To: '[email protected]' <[email protected]>
Subject: Primary server is partially down and never recover.

When primary server network card is disabled and isolate from the network, 
artemis was partially shut down and never recovered when network card enabled 
again.  Is there a configuration to bring back the server when it’s connected 
back to network?
The message in the log was:
2025-10-15 12:22:22,264 INFO  [org.apache.activemq.artemis.core.server] 
AMQ221029: Stopped bridge 
$.artemis.internal.sf.ha-cluster.e3f804cf-a908-11f0-bd59-00505698dec6
2025-10-15 12:22:22,264 INFO  [org.apache.activemq.artemis.core.server] 
AMQ221029: Stopped bridge 
$.artemis.internal.sf.ha-cluster.6b5d640d-a9c1-11f0-ba37-00505698573f
2025-10-15 12:22:32,412 WARN  [org.apache.activemq.artemis.core.server] 
AMQ222002: Timed out waiting for pool to terminate 
org.apache.activemq.artemis.utils.ActiveMQThreadPoolExecutor@6dfcbe93[Shutting<mailto:org.apache.activemq.artemis.utils.ActiveMQThreadPoolExecutor@6dfcbe93[Shutting>
 down, pool size = 2, active threads = 2, queued tasks = 0, completed tasks = 
4393]. Interrupting all its threads!
2025-10-15 12:22:32,412 INFO  [org.apache.activemq.artemis] AMQ241005: Stopping 
embedded web server
java.lang.InterruptedException
        at java.base/java.lang.Object.wait(Native Method)
        at java.base/java.lang.Thread.join(Thread.java:1313)
        at java.base/java.lang.Thread.join(Thread.java:1381)
        at 
org.apache.activemq.artemis.core.server.impl.SharedNothingPrimaryActivation$ReplicationFailureListener.lambda$handleClose$1(SharedNothingPrimaryActivation.java:272)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at 
org.apache.activemq.artemis.utils.ActiveMQThreadFactory$1.run(ActiveMQThreadFactory.java:120)
2025-10-15 12:22:32,427 INFO  [io.hawt.HawtioContextListener] Destroying Hawtio 
services
2025-10-15 12:22:32,431 INFO  [org.apache.activemq.artemis] AMQ241006: Stopped 
embedded web server
2025-10-15 12:22:32,431 INFO  [org.apache.activemq.artemis.core.server] 
AMQ221002: Apache ActiveMQ Artemis Message Broker version 2.42.0 
[7ffb0f2e-a9c0-11f0-8e3d-00505698dec6] stopped, uptime 15 minutes

[cid:[email protected]]

Rahman Gunawan
SITSS Software Developer
NASA SEWP / SITSS
HALVIK Corporation
7601 Ora Glen Dr, Greenbelt, MD 20770
C: 240.444.6003
O: 301.614.5257
[email protected]<mailto:[email protected]>


Reply via email to