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

Clebert Suconic commented on ARTEMIS-4087:
------------------------------------------

I can't reproduce your issue then...

the one line you post here is from the reload of your system and the queue was 
already paging.


if you redo your test you need to do that with an empty broker.

> Artemis starts paging before reaching configured limits
> -------------------------------------------------------
>
>                 Key: ARTEMIS-4087
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-4087
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>    Affects Versions: 2.23.1, 2.25.0
>            Reporter: Marcel Jansen
>            Priority: Major
>
> As documented ([Paging · ActiveMQ 
> Artemis|https://activemq.apache.org/components/artemis/documentation/2.0.0/paging.html])
>  should Artemis start paging when reaching one of the following limits:
> Per queue:
>  * max-size-bytes (default: -1, thus unlimited)
>  * max-size-messages (default: -1, thus unlimited)
> Global:
>  * global-max-size (default: 1/2 of max JVM memory size)
>  * global-max-messages (default: -1, thus unlimited)
> In my understanding should Artemis (if not configured otherwise) start paging 
> when the global size reaches half the size of the JVM max memory.
> I have tested with both the above settings and specific limits. The JVM has a 
> max memory size of 30gb.
> The following log is from a broker with a queue that has approximately 10.000 
> messages of 3kb in size (at peak moments this increases to above 300.000 
> messages) . Despite of the configured limits the log tells me it starts 
> paging:
> {code:java}
> 2022-11-08 14:58:52,282 INFO [org.apache.activemq.artemis.core.server] 
> AMQ222038: Starting paging on address 'redacted.queue.name'; size=0 bytes (0 
> messages); maxSize=4000000000 bytes (1000000 messages); globalSize=0 bytes (0 
> messages); globalMaxSize=16106127360 bytes (-1 messages);{code}
> This is confirmed when I inspect the filesystem:
> {code:java}
> /var/lib/artemis-instance/data/paging$ du -h
> 8.0K    ./62bde078-a373-11ec-931e-7ab5b265b3a6
> 161M    ./3bd3774b-a32e-11ec-931e-7ab5b265b3a6
> 8.0K    ./93ad59a3-df28-11ec-b0a5-8a1ef8f4c99e
> 161M    .{code}
> {code:java}
> /var/lib/artemis-instance/data/paging$ ls -l  
> 3bd3774b-a32e-11ec-931e-7ab5b265b3a6/
> total 179160
> -rw-rw-r-- 1 artemis artemis 10483423 Nov  8 14:51 000033795.page
> -rw-rw-r-- 1 artemis artemis 10484549 Nov  8 14:53 000033797.page
> -rw-rw-r-- 1 artemis artemis 10483487 Nov  8 14:57 000033802.page
> -rw-r--r-- 1 artemis artemis 10481506 Nov  8 15:04 000033804.page
> -rw-r--r-- 1 artemis artemis 10483474 Nov  8 15:04 000033805.page
> -rw-r--r-- 1 artemis artemis 10484783 Nov  8 15:07 000033806.page
> -rw-r--r-- 1 artemis artemis 10485629 Nov  8 15:12 000033807.page
> -rw-r--r-- 1 artemis artemis 10483845 Nov  8 15:13 000033808.page
> -rw-r--r-- 1 artemis artemis 10484295 Nov  8 15:14 000033809.page
> -rw-r--r-- 1 artemis artemis 10483287 Nov  8 15:15 000033810.page
> -rw-r--r-- 1 artemis artemis 10482534 Nov  8 15:15 000033811.page
> -rw-r--r-- 1 artemis artemis 10483602 Nov  8 15:16 000033812.page
> -rw-r--r-- 1 artemis artemis 10483332 Nov  8 15:16 000033813.page
> -rw-r--r-- 1 artemis artemis 10484324 Nov  8 15:16 000033814.page
> -rw-r--r-- 1 artemis artemis 10484248 Nov  8 15:17 000033815.page
> -rw-r--r-- 1 artemis artemis 10484052 Nov  8 15:17 000033816.page
> -rw-r--r-- 1 artemis artemis 10484635 Nov  8 15:18 000033817.page
> -rw-r--r-- 1 artemis artemis  5128056 Nov  8 15:18 000033818.page
> -rw-rw-r-- 1 artemis artemis       46 Mar 14  2022 address.txt {code}
> Am I missing something in my configuration or is this a bug?



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

Reply via email to