ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » QueueSession.commit() get stuck

Post new topic  Reply to topic
 QueueSession.commit() get stuck « View previous topic :: View next topic » 
Author Message
claire
PostPosted: Fri Sep 23, 2005 2:35 am    Post subject: QueueSession.commit() get stuck Reply with quote

Apprentice

Joined: 10 Apr 2002
Posts: 32

Hi,

When my JMS client(thread "Thread-0") tries to execute QueueSession.commit() to commit a queue read operation, it gets stuck for several minutes(5~30 min).

And then I take a thread dump to look for the root cause, it seems that thread "Thread-0" is waiting for a object locked by thread "asyncDelivery0".

Please advise what's wrong and what "asyncDelivery0" does. Thanks a lot.


3XMTHREADINFO "asyncDelivery0" (TID:0xB3B5F0, sys_thread_t:0x2BC52DB8, state:R, native ID:0x14C) prio=5
4XESTACKTRACE at java.net.SocketInputStream.socketRead0(Native Method)
4XESTACKTRACE at java.net.SocketInputStream.read(SocketInputStream.java:153)
4XESTACKTRACE at java.io.BufferedInputStream.fill(BufferedInputStream.java:200)
4XESTACKTRACE at java.io.BufferedInputStream.read1(BufferedInputStream.java:239)
4XESTACKTRACE at java.io.BufferedInputStream.read(BufferedInputStream.java:294)
4XESTACKTRACE at java.io.DataInputStream.readFully(DataInputStream.java:293)
4XESTACKTRACE at java.io.DataInputStream.readInt(DataInputStream.java:471)
4XESTACKTRACE at com.ibm.mq.MQInternalCommunications.timedReadInt(MQInternalCommunications.java:3705)
4XESTACKTRACE at com.ibm.mq.MQInternalCommunications.receiveBytes(MQInternalCommunications.java:1165)
4XESTACKTRACE at com.ibm.mq.MQInternalCommunications.receive(MQInternalCommunications.java:1353)
4XESTACKTRACE at com.ibm.mq.MQSESSIONClient.lowLevelComms(MQSESSIONClient.java:2800)
4XESTACKTRACE at com.ibm.mq.MQSESSIONClient.MQGET(MQSESSIONClient.java:1845)
4XESTACKTRACE at com.ibm.mq.MQQueue.getMsg2Int(MQQueue.java:1079)
4XESTACKTRACE at com.ibm.mq.MQQueue.getMsg2(MQQueue.java:939)
4XESTACKTRACE at com.ibm.mq.jms.MQMessageConsumer.getMessageQ(MQMessageConsumer.java:1532)
4XESTACKTRACE at com.ibm.mq.jms.MQMessageConsumer.getMessage(MQMessageConsumer.java:4313)
4XESTACKTRACE at com.ibm.mq.jms.MQMessageConsumer.receiveAsyncQ(MQMessageConsumer.java:2504)
4XESTACKTRACE at com.ibm.mq.jms.MQMessageConsumer.receiveAsync(MQMessageConsumer.java:4257)
4XESTACKTRACE at com.ibm.mq.jms.contact admin.run(contact admin.java:420)
4XESTACKTRACE at java.lang.Thread.run(Thread.java:568)
3XMTHREADINFO "Thread-1" (TID:0xB3B648, sys_thread_t:0x301A50, state:CW, native ID:0x998) prio=5
3XMTHREADINFO "Thread-0" (TID:0xB3B6A0, sys_thread_t:0x2BC07D10, state:CW, native ID:0x8B4) prio=5
4XESTACKTRACE at com.ibm.mq.jms.MQSession.commitQ(MQSession.java:3720)
4XESTACKTRACE at com.ibm.mq.jms.MQQueueSession.commit(MQQueueSession.java:143)
4XESTACKTRACE at RequestResponseHandler.getResponse(RequestResponseHandler.java:45)
4XESTACKTRACE at MQHandler.doRequest(MQHandler.java:72)
4XESTACKTRACE at MQHandler.doVerbFor(MQHandler.java:59)
4XESTACKTRACE at TestThread.run(TestThread.java:11)
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Sep 23, 2005 2:46 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

MQ Server version + Server OS version
MQ Client version + client OS
MQ Transport (bindings ?)
Participating in a multiphase commit ?

There are a lot of questions and you do describe only the symptom, no the scenario....

Back to top
View user's profile Send private message Send e-mail
hopsala
PostPosted: Fri Sep 23, 2005 5:23 am    Post subject: Reply with quote

Guardian

Joined: 24 Sep 2004
Posts: 960

Also:

- Post the relevant code snippet.
- Check the error logs on the server.
- Does this always happen? Has this ever worked in the past?
- Do you have other programs using commits and does it work there?
- How many msgs are you commiting? (of what size?)

Info, we need more Info...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » QueueSession.commit() get stuck
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.