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 » Renewing listener thread but no exceptions

Post new topic  Reply to topic
 Renewing listener thread but no exceptions « View previous topic :: View next topic » 
Author Message
jshailes
PostPosted: Thu Jul 21, 2011 4:42 am    Post subject: Renewing listener thread but no exceptions Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Thu Jul 21, 2011 7:45 am    Post subject: Re: Renewing listener thread but no exceptions Reply with quote

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
View user's profile Send private message Send e-mail
jshailes
PostPosted: Thu Jul 21, 2011 8:28 am    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Thu Jul 21, 2011 10:18 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
luddy
PostPosted: Sat Nov 10, 2012 7:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Sun Nov 11, 2012 7:06 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Renewing listener thread but no exceptions
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.