You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by manohar7033 <sa...@gmail.com> on 2014/05/08 08:21:36 UTC

ActiveMQ network of brokers not working properly

Hi,

I am using network of brokers in my project. I am routing messages from
ActiveMQ A to ActiveMQ B. It works fine for sometime, But getting stuck
after sending few messages. It is very random nature. 

But after restarting my ActiveMQ A, it works fine(for sometime). But again
after sometime the messages get stuck. Not sure where to check.

But, If i try to re-produce this locally, I am not hitting the issue. 

Can someone please suggest me, where to start to identify the issue. I have
thread dump and heap dumps of ActiveMQ A before restart.

Thanks in advance.
Manohar



--
View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-network-of-brokers-not-working-properly-tp4680990.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.

Re: ActiveMQ network of brokers not working properly

Posted by manohar7033 <sa...@gmail.com>.
Please find the below from broker config xml.

<destinations>
	<queue physicalName="prodEventQueue2.PLAY" />
	<queue physicalName="prodEventQueue1.PLAY" />
</destinations>

<destinationInterceptors>
	<virtualDestinationInterceptor>
		<virtualDestinations>
			<compositeQueue name="prodEventQueue2">
				<forwardTo>
					<queue physicalName="prodEventQueue2.PLAY" />
				</forwardTo>
			</compositeQueue>

			<compositeQueue name="prodEventQueue1">
				<forwardTo>
					<queue physicalName="prodEventQueue1.PLAY" />
				</forwardTo>
			</compositeQueue>
		</virtualDestinations>
	</virtualDestinationInterceptor>
</destinationInterceptors>

<networkConnectors>
	<networkConnector name="PlayToRealBridge"
uri="static:(failover:(nio://xx.xx.xx.xx:61616,nio://xx.xx.xx.xx:61616)?randomize=false&amp;timeout=120000)">
		<staticallyIncludedDestinations>
			<queue physicalName="prodSocialQueue.PLAY" />
		</staticallyIncludedDestinations>
	</networkConnector>

	<networkConnector name="Network_for_MediumPrioNsQueue"
uri="static:(failover:(nio://xx.xx.xx.xx:61616,nio://xx.xx.xx.xx:61616)?randomize=false&amp;timeout=120000)">
		<staticallyIncludedDestinations>
			<queue physicalName="mediumPrioNsQueue" />
		</staticallyIncludedDestinations>
	</networkConnector>

	<networkConnector name="Network_for_Prod2"
uri="static:(failover:(nio://xx.xx.xx.xx:61616,nio://xx.xx.xx.xx:61616)?randomize=false&amp;timeout=120000)">
		<staticallyIncludedDestinations>
			<queue physicalName="prodEventQueue2.PLAY" />
		</staticallyIncludedDestinations>
	</networkConnector>
	
	<networkConnector name="Network_for_Prod1"
uri="static:(failover:(nio://xx.xx.xx.xx:61616,nio://xx.xx.xx.xx:61616)?randomize=false&amp;timeout=120000)">
		<staticallyIncludedDestinations>
			<queue physicalName="prodEventQueue1.PLAY" />
		</staticallyIncludedDestinations>
	</networkConnector>
</networkConnectors>



--
View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-network-of-brokers-not-working-properly-tp4680990p4680993.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.

Re: ActiveMQ network of brokers not working properly

Posted by lacigas <la...@gmail.com>.
Please send your <networkConnector> definitions.

On 08.05.2014 08:21, manohar7033 [via ActiveMQ] wrote:
> Hi,
>
> I am using network of brokers in my project. I am routing messages 
> from ActiveMQ A to ActiveMQ B. It works fine for sometime, But getting 
> stuck after sending few messages. It is very random nature.
>
> But after restarting my ActiveMQ A, it works fine(for sometime). But 
> again after sometime the messages get stuck. Not sure where to check.
>
> But, If i try to re-produce this locally, I am not hitting the issue.
>
> Can someone please suggest me, where to start to identify the issue. I 
> have thread dump and heap dumps of ActiveMQ A before restart.
>
> Thanks in advance.
> Manohar
>
> ------------------------------------------------------------------------
> If you reply to this email, your message will be added to the 
> discussion below:
> http://activemq.2283324.n4.nabble.com/ActiveMQ-network-of-brokers-not-working-properly-tp4680990.html 
>
> To start a new topic under ActiveMQ - Dev, email 
> ml-node+s2283324n2368404h84@n4.nabble.com
> To unsubscribe from ActiveMQ, click here 
> <http://activemq.2283324.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2341804&code=bGFjaWdhc0BnbWFpbC5jb218MjM0MTgwNHwtNTEyNTg4MDgz>.
> NAML 
> <http://activemq.2283324.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> 
>





--
View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-network-of-brokers-not-working-properly-tp4680990p4680992.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.