[ 
https://issues.apache.org/jira/browse/AMQ-7212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

xuxuanwan updated AMQ-7212:
---------------------------
    Priority: Major  (was: Minor)

> Topic memory percent can't reduce after message expired
> -------------------------------------------------------
>
>                 Key: AMQ-7212
>                 URL: https://issues.apache.org/jira/browse/AMQ-7212
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.15.4, 5.15.9
>         Environment: openjdk version "1.8.0_192"
> OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_192-b12)
> OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.192-b12, mixed mode)
>            Reporter: xuxuanwan
>            Priority: Major
>         Attachments: ActiveMqTest.java
>
>
> Given:
>  * The policyEntry of Topic set memoryLimit ="128kb"
>  * let message expir in 10s
> When:
>  * there have an inactive durable subscription subscribes a Topic
>  * messages are send to that topic with DeliveryMode.PERSISTENT
> Then:
>  * messages are kept in brokers memory(visible in memoryPercentUsage)
> When:
>  * messages expiration time or TTL is elapsed
> Then:
>  * messages are still kept in brokers memory (visible in 
> {{memoryPercentUsage}}, on heap etc) 
>  * only after unsubscribeDurableSubscription the memory will reduce.
>  
> This is similar to AMQ-6387 except that I use broker with persistence.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to