Author |
Message
|
jshailes |
Posted: Thu Jul 21, 2011 4:42 am Post subject: Renewing listener thread but no exceptions |
|
|
Apprentice
Joined: 18 May 2009 Posts: 31
|
I have a single listener for 3 topics and when I profile the app with jprofiler I see 3 threads all labelled 'DispatchThread: 1'. After a variable period of time (approx 2-12 hours) one or more of the threads dies and a new thread is created labelled 'DispatchThread: 2'. If I leave it running for a few days it frequently reaches a maximum of 'DispatchThread: 99'. The period between the death of 1 thread and the creation of another ranges between 50-120 seconds; during this period I am losing messages. This problem seems to occur more frequently with listeners on one particular topic but to some extent all of them are affected. I am unable to find any logs on the MQ server and there are no exceptions thrown in the Java client. I am connecting with client mode and am not using transactions. I do have an ExceptionListener on the TopicListener but it never seems to get called, and this adds to my confusion as I can't imagine how a new Listener Thread is sporned without being told to do so.
Has anyone seen this before or could you give me advice on how to diagnose this problem further?
Thanks,
James |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Jul 21, 2011 7:45 am Post subject: Re: Renewing listener thread but no exceptions |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
jshailes wrote: |
I have a single listener for 3 topics and when I profile the app with jprofiler I see 3 threads all labelled 'DispatchThread: 1'. After a variable period of time (approx 2-12 hours) one or more of the threads dies and a new thread is created labelled 'DispatchThread: 2'. If I leave it running for a few days it frequently reaches a maximum of 'DispatchThread: 99'. The period between the death of 1 thread and the creation of another ranges between 50-120 seconds; during this period I am losing messages. This problem seems to occur more frequently with listeners on one particular topic but to some extent all of them are affected. I am unable to find any logs on the MQ server and there are no exceptions thrown in the Java client. I am connecting with client mode and am not using transactions. I do have an ExceptionListener on the TopicListener but it never seems to get called, and this adds to my confusion as I can't imagine how a new Listener Thread is sporned without being told to do so.
Has anyone seen this before or could you give me advice on how to diagnose this problem further?
Thanks,
James |
Well you do not give us any information about your WMQ release...
My advice upgrade to V7.0.1.5 and if the problem persists open a PMR...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
jshailes |
Posted: Thu Jul 21, 2011 8:28 am Post subject: |
|
|
Apprentice
Joined: 18 May 2009 Posts: 31
|
OK thanks for teh advice. I'm currently running 7.0.0.0 I believe. I've thought it could be a bug in MQ but this is so fundamental I doubted it could be that. Also if I make a bog standard application that does nothing but receive a message and then return everything works fine. |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Jul 21, 2011 10:18 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
jshailes wrote: |
OK thanks for teh advice. I'm currently running 7.0.0.0 I believe. I've thought it could be a bug in MQ but this is so fundamental I doubted it could be that. Also if I make a bog standard application that does nothing but receive a message and then return everything works fine. |
GA for V7 is 7.0.1.3
I would not advise to use JMS without the patches (7.0.1.5) as you will run into too many known problems.
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
luddy |
Posted: Sat Nov 10, 2012 7:01 pm Post subject: |
|
|
Newbie
Joined: 10 Nov 2012 Posts: 1
|
Hi,
I'm running into same problem using MQ 7.0.1.9 on Solaris SPARC.
However, in my case, I don't seem to be losing trades. Looks like the thread dies and the next time a message appears, MQ automatically recreates a new listener thread.
2012-11-11 01:02:57,977 108891167 [DispatchThread: 2] DEBUG com.ba.mimosa.SimpleReceiver [] - Acknowledging to JMS: ID:414d51204155334d4f46312e4d5120204d537b5020767ab0
2012-11-11 01:03:32,834 108926024 [DispatchThread: 3] DEBUG com.ba.mimosa.server.AcknowledgementManager [] - Received msgid: ID:414d51204155334d4f46312e4d5120204d537b5020767ab2
Was the issue solved by upgrading?
Or was it an exception? (I noticed that the bog standard app does not have this issue).
Thanks for letting forum know of solution, if found.
Thanks |
|
Back to top |
|
 |
fjb_saper |
Posted: Sun Nov 11, 2012 7:06 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
if you're worried about loosing messages you NEED to use a transacted session. For the rest open a PRM  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|