You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by "ヤ艾枫o.--" <11...@qq.com> on 2021/06/17 03:34:20 UTC

回复: Use jolokia to read messages from the queue, up to 400 messages?

Thanks,After your explanation, there is really no need to read too much message content




------------------&nbsp;原始邮件&nbsp;------------------
发件人:                                                                                                                        "users"                                                                                    <tbain@alumni.duke.edu&gt;;
发送时间:&nbsp;2021年6月16日(星期三) 晚上7:34
收件人:&nbsp;"ActiveMQ Users"<users@activemq.apache.org&gt;;

主题:&nbsp;Re: Use jolokia to read messages from the queue, up to 400 messages?



That matches my understanding: the queue browser is meant to be a way to
view small numbers of messages from among those that would be consumed
next, not a way to view every message in a huge queue.

If you need that ability, one option is to use the JDBC backing store type,
since then you can query the entire table at will. But there are tradeoffs
to that change (performance, cost, etc.), so you'll want to weigh whether
the ability to see all messages is worth it in light of those tradeoffs.

Tim

On Tue, Jun 15, 2021, 8:47 PM Justin Bertram <jbertram@apache.org&gt; wrote:

&gt;&nbsp; From what I can tell by looking at the source code [1], I don't believe
&gt; there is a way to get to the "next page." The maxBrowsePageSize looks to be
&gt; the absolute maximum number of messages you can browse administratively.
&gt;
&gt; Out of curiosity, why are you wanting to browse so many messages via
&gt; Jolokia?
&gt;
&gt;
&gt; Justin
&gt;
&gt; [1]
&gt;
&gt; https://github.com/apache/activemq/blob/ff1af27106c74ad930c5bd12e8c0159e522efb70/activemq-broker/src/main/java/org/apache/activemq/broker/region/Queue.java#L1172
&gt;
&gt; On Tue, Jun 15, 2021 at 9:29 PM ヤ艾枫o.-- <1169114186@qq.com&gt; wrote:
&gt;
&gt; &gt; Hi
&gt; &gt; Use jolokia to read messages from the queue, up to 400 messages.
&gt; &gt; After viewing some configurations, you can set the maximum message size
&gt; &gt; per page by setting maxBrowserPageSize,
&gt; &gt;
&gt; &gt;
&gt; &gt; But how to read the next page.
&gt; &gt;
&gt; &gt;
&gt; &gt; For example, when the same message size is 1000, when maxBrowserPageSize=
&gt; &gt; 500, you can view 0-500 messages, but how can I view 500-1000 messages
&gt; &gt; (messages on the next page)?
&gt;