You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Badri <ba...@fxall.com> on 2007/10/15 20:54:58 UTC

Active MQ hangs while closing session

Hi

I am simulating some issues which we are facing. One such issue is login -
subscribe-unsubscribe to topic.
I am trying to initiate a TopicSession. After a few minutes, I try to close
the session. It seems I am unable to close the TopicSession & when i try to
once again create a new topic session, I am unable to do it.

I took the thread dump from the application.

One of the thread dump which was of significance was this:

"task" daemon prio=1 tid=0x087ad448 nid=0x60ef in Object.wait()
[0x683d0000..0x683d1130]
	at java.lang.Object.wait(Native Method)
	- waiting on <0x729f7ad0> (a org.apache.activemq.thread.PooledTaskRunner$1)
	at java.lang.Object.wait(Object.java:474)
	at
org.apache.activemq.thread.PooledTaskRunner.shutdown(PooledTaskRunner.java:89)
	- locked <0x729f7ad0> (a org.apache.activemq.thread.PooledTaskRunner$1)
	at
org.apache.activemq.ActiveMQSessionExecutor.stop(ActiveMQSessionExecutor.java:117)
	at org.apache.activemq.ActiveMQSession.dispose(ActiveMQSession.java:540)
	- locked <0x729f6a48> (a org.apache.activemq.ActiveMQSession)
	at org.apache.activemq.ActiveMQSession.close(ActiveMQSession.java:516)
	at
org.apache.activemq.ActiveMQTopicSession.close(ActiveMQTopicSession.java:67)
	at
com.fxall.marketplace.matching.clients.marketdata.MarketDataConnection.close(MarketDataConnection.java:257)
	at
com.fxall.marketplace.matching.clients.marketdata.MarketDataClientImpl.unsubscribe(MarketDataClientImpl.java:328)
	- locked <0x7279bbb0> (a
com.fxall.marketplace.matching.clients.marketdata.MarketDataClientImpl)
	at
com.fxall.mp.marketview.feed.MatchingEngineMDFeed.unsubscribeME(MatchingEngineMDFeed.java:110)
	at
com.fxall.mp.marketview.feed.MatchingEngineMDFeed.renew(MatchingEngineMDFeed.java:134)
	- locked <0x7297b5a0> (a com.fxall.mp.marketview.feed.MatchingEngineMDFeed)
	at
net.jini.lease.LeaseRenewalManager.renewAll(LeaseRenewalManager.java:1404)
	at
net.jini.lease.LeaseRenewalManager.access$500(LeaseRenewalManager.java:319)
	at
net.jini.lease.LeaseRenewalManager$RenewTask.run(LeaseRenewalManager.java:451)
	at com.sun.jini.thread.TaskManager$TaskThread.run(TaskManager.java:331)

We tried using Active MQ 4.0 & 4.1.1. I see this same issue in both the
versions. I am not sure what is causing Active MQ to hang maybe which does
not allow the user to create a new topic session & topic.

I am not sure if it's solved in future versions of Active MQ (if it's a
known issue).

Thanks for the help & advice.

Regards
Badri
-- 
View this message in context: http://www.nabble.com/Active-MQ-hangs-while-closing-session-tf4629597s2354.html#a13219388
Sent from the ActiveMQ - User mailing list archive at Nabble.com.