Hi Justin,
it’ just a thought from my findings.
Same system setup.
Case A) MQTT clients publishing on topics that create addresses that are not 
deleted => no memory eating on broker side
Case B) MQTT clients publishing on different topics (every message is published 
on a new different topic). These addresses are deleted => memory eating on 
broker side
From my checks the address looks to be deleted correctly (Artemis core metrics 
reports a constant address count).

So I’m wonder if I’m doing address deletion in the right way or I’m forgetting 
something.

Thanks for your support,
Riccardo

From: Justin Bertram <[email protected]>
Date: Tuesday, 9 September 2025 at 18:39
To: [email protected] <[email protected]>
Subject: Re: How to programmatically delete addresses in Artemis
Can you elaborate on the "related objects" here? What exactly isn't being
removed?


Justin

On Tue, Sep 9, 2025 at 11:17 AM Modanese, Riccardo
<[email protected]> wrote:

> Hi guys, I have to delete programmatically addresses based on some logic
> in Artemis broker.
>
> I tried with
> SimpleString address = new SimpleString(someStringAddress);
> ...
> ActiveMQServer server = <current_instance>;
> ...
> server.removeAddressInfo(simpleAddress, null, true);
>
> but looks like there are addresses related objects not removed from the
> broker memory (there is a memory leak)
>
> Thanks in advance for your support.
>
> Regards,
> Riccardo Modanese
>

Reply via email to