[ 
https://issues.apache.org/jira/browse/ARTEMIS-5188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17902061#comment-17902061
 ] 

Justin Bertram commented on ARTEMIS-5188:
-----------------------------------------

So, you are using {{<auto-delete-addresses>true</auto-delete-addresses>}}. 
However, you're also using 
{{<auto-delete-addresses-delay>60000</auto-delete-addresses-delay>}}. Have 
those ".iot." addresses been around longer than 60 seconds with no queues 
bound? Did the addresses _ever_ have queues bound? You might need to set:
{code:xml}
<auto-delete-addresses-skip-usage-check>false</auto-delete-addresses-skip-usage-check>{code}
[The 
documentation|https://activemq.apache.org/components/artemis/documentation/latest/address-settings.html#address-settings]
 says this about {{auto-delete-addresses-skip-usage-check}}:
{quote}An address will only be auto-deleted by default if it has actually been 
"used." An address is considered "used" if any queues have been created on it 
during its life. However, there are use-cases where it’s useful to skip this 
check. When set to true it is *imperative* to also set 
{{auto-delete-addresses-delay}} to a value greater than {{0}} otherwise 
addresses may be deleted almost immediately after being created. In this case 
the address will be deleted based on when it was created rather then when it 
was last "used." Default is {{false}}.{quote}
Also, you might consider disabling auto-address creation for {{.iot.#}} so that 
all these addresses are not created in the first place.

Lastly, why did you post a screenshot of {{netstat}} output? How is that 
relevant? 

*Please* provide more details rather than just posting screenshots.

At this point I don't see any evidence of any kind of memory leak in the 
broker. This seems like a basic misconfiguration. I recommend you review the 
documentation and your runtime settings to provide the proper configuration for 
your use-case.

> OOM
> ---
>
>                 Key: ARTEMIS-5188
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-5188
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: MQTT
>    Affects Versions: 2.38.0
>            Reporter: gongping.zhu
>            Priority: Major
>         Attachments: image-2024-11-29-14-24-33-334.png, 
> image-2024-11-29-14-25-24-153.png, image-2024-11-30-11-16-12-338.png, 
> image-2024-11-30-11-45-16-278.png, image-2024-11-30-14-24-04-286.png, 
> image-2024-11-30-14-44-32-718.png
>
>
> I monitored memory objects using JProfiler and found that the 
> {{org.apache.activemq.artemis.core.server.impl.AddressInfo}} objects are 
> increasing without being cleared, eventually leading to an out-of-memory 
> error. How can I resolve this issue?



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to