[ 
https://issues.apache.org/jira/browse/ARTEMIS-3581?focusedWorklogId=683184&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-683184
 ]

ASF GitHub Bot logged work on ARTEMIS-3581:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 18/Nov/21 09:44
            Start Date: 18/Nov/21 09:44
    Worklog Time Spent: 10m 
      Work Description: gtully merged pull request #3856:
URL: https://github.com/apache/activemq-artemis/pull/3856


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 683184)
    Time Spent: 0.5h  (was: 20m)

> Allow setMaxSizeBytes(0) to indicate an address that will always page
> ---------------------------------------------------------------------
>
>                 Key: ARTEMIS-3581
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-3581
>             Project: ActiveMQ Artemis
>          Issue Type: Improvement
>          Components: Broker, Configuration
>    Affects Versions: 2.19.0
>            Reporter: Gary Tully
>            Priority: Major
>             Fix For: 2.20.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Currently for force paging on an address, for a DLQ for example, you would 
> set {{max-size-bytes}}  to some small number, e.g.:
> {code:xml}
>    <address-full-policy>PAGE</address-full-policy>
>    <max-size-bytes>1</max-size-bytes>{code}
> However, the broker will complain with:
> {noformat}
> 2021-11-15 16:21:51,606 ERROR [org.apache.activemq.artemis.core.server] 
> AMQ224000: Failure in initialisation: java.lang.IllegalStateException: 
> java.lang.IllegalStateException: pageSize for address DLQ.mytest >= maxSize. 
> Normally pageSize should be significantly smaller than maxSize, ms: 1 ps 
> 1024{noformat}
> You could go ahead and downsize the {{page-size-bytes}} as well, but you 
> don't want to cripple de-page or page-in and use a reasonable value and some 
> memory!
> {code:xml}
>    <address-full-policy>PAGE</address-full-policy>
>    <max-size-bytes>256</max-size-bytes>
>    <page-size-bytes>128</page-size-bytes>{code}
> It _should_ be sufficient to just set:
> {code:xml}
>    <address-full-policy>PAGE</address-full-policy>
>    <max-size-bytes>0</max-size-bytes>{code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to