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.INVALID> on 2021/07/14 06:28:11 UTC

I have a question use runtimeConfigurationPlugins

Hi&nbsp; When i use runtimeConfigurationPlugins on a single broker it works.The expected effect has been achieved
When I used the same configuration in ActiveMQ + zookeeper, there was an error. And all three nodes exposed port 8161
This is the activemq.log
WARN || org.eclipse.jetty.servlet.ServletHandler |qtp749115872-17
org.apache.jasper.jasperException:An exception occurred processing JSP page /xml/queues.jsp at lin2 21
18:<%-- Workaround for https://ops4j1.jira.com/browse/PAXWEB-1070 --%&gt;
19:<%@include file="../WEB-INF/jspf/headertage.jspf" %&gt;
20:<queues&gt;
21:<c:forEach items="${requestContext.brokerQuery.queses}" var="row"&gt;
22::<queue name="<c:out value="${row.name}"&gt;"&gt;
23:
24:<stats size="${row.queueSize}"&gt;


Stacktrace:
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at org.apache.jasper.servlet.JspServletWrapper.handleJspExcption(JspServletWapper.java:574)[apache-sjp-8.0.33.jar:2.3]
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at org.apache.jasper.servlet.JspServletWraaper.Service(JspServletWrapper.java:476)
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;


this is my activemq.xml
<broker .......&nbsp; start="false"&gt;
<plugins&gt;
<runtimeConfigurationPlugin checkPeriod="1000"/&gt;
</plugins&gt;

Re: I have a question use runtimeConfigurationPlugins

Posted by Tim Bain <tb...@alumni.duke.edu>.
If you switch the configuration from LevelDB to KahaDB on local storage, do
both brokers start successfully? Without a shared filesystem they won't be
in a failover pair, but still, do they start and accept/deliver messages?
What about if you temporarily set up a database (e.g. SQLite, doesn't have
to be something expensive like Oracle) and connect both brokers to it? I'm
looking to determine whether the issue is cross-cutting across all data
stores or is specific to LevelDB.

I read the documentation[1] and now I see that start=false appears to be
required in order to allow the runtime configuration feature to
work properly, so disregard my earlier comment about that setting.

Tim

1.
https://activemq.apache.org/runtime-configuration#:~:text=Note%3A%20the%20start%3D%22false,location%20can%20be%20successfully%20resolved
.


On Thu, Jul 15, 2021, 2:09 AM ヤ艾枫o.-- <11...@qq.com.invalid> wrote:

> The master node starts normally without error log, and the slave node
> starts with error log. What's more strange is that each node will expose
> port 8161. If the above configuration is removed, the three nodes will
> start normally. By the way, what's the impact of setting start to true
> (start = "false")
>
>
> ------------------&nbsp;原始邮件&nbsp;------------------
> 发件人:
>                                                   "users"
>                                                                   <
> tbain@alumni.duke.edu&gt;;
> 发送时间:&nbsp;2021年7月14日(星期三) 晚上8:34
> 收件人:&nbsp;"ActiveMQ Users"<users@activemq.apache.org&gt;;
>
> 主题:&nbsp;Re: I have a question use runtimeConfigurationPlugins
>
>
>
> From that stack trace, my best guess is that your broker is not actually
> started. Maybe that's because of the start="false" snippet you quoted? Or
> maybe there's something wrong with the part of your config that you didn't
> post? Or maybe your HTTP request is going to a passive broker instead of
> the active one?
>
> Tim
>
> On Wed, Jul 14, 2021, 12:28 AM ヤ艾枫o.-- <1169114186@qq.com.invalid&gt;
> wrote:
>
> &gt; Hi&amp;nbsp; When i use runtimeConfigurationPlugins on a single
> broker it
> &gt; works.The expected effect has been achieved
> &gt; When I used the same configuration in ActiveMQ + zookeeper, there was
> an
> &gt; error. And all three nodes exposed port 8161
> &gt; This is the activemq.log
> &gt; WARN || org.eclipse.jetty.servlet.ServletHandler |qtp749115872-17
> &gt; org.apache.jasper.jasperException:An exception occurred processing JSP
> &gt; page /xml/queues.jsp at lin2 21
> &gt; 18:<%-- Workaround for https://ops4j1.jira.com/browse/PAXWEB-1070
> --%&amp;gt;
> &gt; 19:<%@include file="../WEB-INF/jspf/headertage.jspf" %&amp;gt;
> &gt; 20:<queues&amp;gt;
> &gt; 21:<c:forEach items="${requestContext.brokerQuery.queses}"
> var="row"&amp;gt;
> &gt; 22::<queue name="<c:out value="${row.name}"&amp;gt;"&amp;gt;
> &gt; 23:
> &gt; 24:<stats size="${row.queueSize}"&amp;gt;
> &gt;
> &gt;
> &gt; Stacktrace:
> &gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at
> &gt;
> org.apache.jasper.servlet.JspServletWrapper.handleJspExcption(JspServletWapper.java:574)[apache-sjp-8.0.33.jar:2.3]
> &gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at
> &gt;
> org.apache.jasper.servlet.JspServletWraaper.Service(JspServletWrapper.java:476)
> &gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;
> &gt;
> &gt;
> &gt; this is my activemq.xml
> &gt; <broker .......&amp;nbsp; start="false"&amp;gt;
> &gt; <plugins&amp;gt;
> &gt; <runtimeConfigurationPlugin checkPeriod="1000"/&amp;gt;
> &gt; </plugins&amp;gt;

on ActiveMQ+zookeeper

Posted by "ヤ艾枫o.--" <11...@qq.com.INVALID>.
Hello
A new queue is added in the master node. When the master and slave switch, the queue will appear in the slave node; After deleting the queue at the master node and after the master-slave switch, the queue still exists at the slave node. Is there no data synchronization during deletion? How to set the synchronization interval

Re: I hava a question about ActiveMQ.DLQ on ActiveMQ+zookeeper

Posted by Tim Bain <tb...@alumni.duke.edu>.
As we've mentioned previously, replicated LevelDB is not a supported
configuration and support is being removed in the next release, no one on
this mailing list knows enough about it to help you troubleshoot problems,
and if you do choose to use it despite those things you should be prepared
to use the source code and a debugger to answer your own questions and
implement your own fixes.

Tim

On Tue, Jul 20, 2021, 7:22 PM ヤ艾枫o.-- <11...@qq.com.invalid> wrote:

> Hello
> I have set the policy of not discarding the dead letter queue, and set the
> message will enter the dead letter queue after expiration. When I restart
> the broker of three nodes, I sometimes find that the statistics of
> activemq.dlq of each node are inconsistent, mainly&nbsp; the value of
> QueueSize&nbsp;. And sometimes the value of QueueSize is negative.
>
>
> The version number used is: activemq5.15.9 + zookeeper 3.4.5
>
>
> I found that the message synchronization strategy of this cluster mode is
> semi synchronous by consulting the data. Is it because the message of
> master node has not been synchronized to other slave nodes?If so, how to
> set the time interval for synchronizing other nodes? At the same time, I'm
> setting the number of expired messages to be less than 200

I hava a question about ActiveMQ.DLQ on ActiveMQ+zookeeper

Posted by "ヤ艾枫o.--" <11...@qq.com.INVALID>.
Hello
I have set the policy of not discarding the dead letter queue, and set the message will enter the dead letter queue after expiration. When I restart the broker of three nodes, I sometimes find that the statistics of activemq.dlq of each node are inconsistent, mainly&nbsp; the value of QueueSize&nbsp;. And sometimes the value of QueueSize is negative.


The version number used is: activemq5.15.9 + zookeeper 3.4.5


I found that the message synchronization strategy of this cluster mode is semi synchronous by consulting the data. Is it because the message of master node has not been synchronized to other slave nodes?If so, how to set the time interval for synchronizing other nodes? At the same time, I'm setting the number of expired messages to be less than 200

回复: I have a question use runtimeConfigurationPlugins

Posted by "ヤ艾枫o.--" <11...@qq.com.INVALID>.
The master node starts normally without error log, and the slave node starts with error log. What's more strange is that each node will expose port 8161. If the above configuration is removed, the three nodes will start normally. By the way, what's the impact of setting start to true (start = "false")


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

主题:&nbsp;Re: I have a question use runtimeConfigurationPlugins



From that stack trace, my best guess is that your broker is not actually
started. Maybe that's because of the start="false" snippet you quoted? Or
maybe there's something wrong with the part of your config that you didn't
post? Or maybe your HTTP request is going to a passive broker instead of
the active one?

Tim

On Wed, Jul 14, 2021, 12:28 AM ヤ艾枫o.-- <1169114186@qq.com.invalid&gt; wrote:

&gt; Hi&amp;nbsp; When i use runtimeConfigurationPlugins on a single broker it
&gt; works.The expected effect has been achieved
&gt; When I used the same configuration in ActiveMQ + zookeeper, there was an
&gt; error. And all three nodes exposed port 8161
&gt; This is the activemq.log
&gt; WARN || org.eclipse.jetty.servlet.ServletHandler |qtp749115872-17
&gt; org.apache.jasper.jasperException:An exception occurred processing JSP
&gt; page /xml/queues.jsp at lin2 21
&gt; 18:<%-- Workaround for https://ops4j1.jira.com/browse/PAXWEB-1070 --%&amp;gt;
&gt; 19:<%@include file="../WEB-INF/jspf/headertage.jspf" %&amp;gt;
&gt; 20:<queues&amp;gt;
&gt; 21:<c:forEach items="${requestContext.brokerQuery.queses}" var="row"&amp;gt;
&gt; 22::<queue name="<c:out value="${row.name}"&amp;gt;"&amp;gt;
&gt; 23:
&gt; 24:<stats size="${row.queueSize}"&amp;gt;
&gt;
&gt;
&gt; Stacktrace:
&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at
&gt; org.apache.jasper.servlet.JspServletWrapper.handleJspExcption(JspServletWapper.java:574)[apache-sjp-8.0.33.jar:2.3]
&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at
&gt; org.apache.jasper.servlet.JspServletWraaper.Service(JspServletWrapper.java:476)
&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;
&gt;
&gt;
&gt; this is my activemq.xml
&gt; <broker .......&amp;nbsp; start="false"&amp;gt;
&gt; <plugins&amp;gt;
&gt; <runtimeConfigurationPlugin checkPeriod="1000"/&amp;gt;
&gt; </plugins&amp;gt;

Re: I have a question use runtimeConfigurationPlugins

Posted by Tim Bain <tb...@alumni.duke.edu>.
From that stack trace, my best guess is that your broker is not actually
started. Maybe that's because of the start="false" snippet you quoted? Or
maybe there's something wrong with the part of your config that you didn't
post? Or maybe your HTTP request is going to a passive broker instead of
the active one?

Tim

On Wed, Jul 14, 2021, 12:28 AM ヤ艾枫o.-- <11...@qq.com.invalid> wrote:

> Hi&nbsp; When i use runtimeConfigurationPlugins on a single broker it
> works.The expected effect has been achieved
> When I used the same configuration in ActiveMQ + zookeeper, there was an
> error. And all three nodes exposed port 8161
> This is the activemq.log
> WARN || org.eclipse.jetty.servlet.ServletHandler |qtp749115872-17
> org.apache.jasper.jasperException:An exception occurred processing JSP
> page /xml/queues.jsp at lin2 21
> 18:<%-- Workaround for https://ops4j1.jira.com/browse/PAXWEB-1070 --%&gt;
> 19:<%@include file="../WEB-INF/jspf/headertage.jspf" %&gt;
> 20:<queues&gt;
> 21:<c:forEach items="${requestContext.brokerQuery.queses}" var="row"&gt;
> 22::<queue name="<c:out value="${row.name}"&gt;"&gt;
> 23:
> 24:<stats size="${row.queueSize}"&gt;
>
>
> Stacktrace:
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at
> org.apache.jasper.servlet.JspServletWrapper.handleJspExcption(JspServletWapper.java:574)[apache-sjp-8.0.33.jar:2.3]
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at
> org.apache.jasper.servlet.JspServletWraaper.Service(JspServletWrapper.java:476)
> &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
>
>
> this is my activemq.xml
> <broker .......&nbsp; start="false"&gt;
> <plugins&gt;
> <runtimeConfigurationPlugin checkPeriod="1000"/&gt;
> </plugins&gt;