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 » General Discussion » MQSeries 2.2.0.1 listener hang issue-Client 5.1 connections

Post new topic  Reply to topic
 MQSeries 2.2.0.1 listener hang issue-Client 5.1 connections « View previous topic :: View next topic » 
Author Message
gunner
PostPosted: Mon Jul 19, 2004 6:58 am    Post subject: MQSeries 2.2.0.1 listener hang issue-Client 5.1 connections Reply with quote

Newbie

Joined: 19 Jul 2004
Posts: 3

We are experiencing an intermittent issue which results in the listener on an external instance of MQ Server hanging, which requires a support person to restart.

The environments are:

A VB6 appliction using MQ Client 5.1 running on an Windows NT server, connecting to a business customer who is running MQ Server 2.2.0.1 on a Tandem.

Currently our VB application functions as follows:

On each application "loop":
Connect to Queue Manager
Connect to Queue 1
Process Messages
Disconnect from Queue 1
Connect to Queue 2
Process Messages
Disconnect from Queue 2
Etc.
Disconnect from Queue Manager

This application runs constantly, 24x7. Every couple of weeks the people on the server side find that the listener hangs, which results in a call out to restart. The people on the server side, sees the connection as always being open and never sees our disconnections.

Our code is definitely disconnection and we are setting our objects to NOTHING.

At one point we changed the application flow to:

Connect to Queue Manager once on application startup

On each application "loop":
Connect to Queue 1
Process Messages
Disconnect from Queue 1
Connect to Queue 2
Process Messages
Disconnect from Queue 2
Etc.

Disconnect from Queue Manager on application shutdown

This actually resulted in the listener hanging every 2 hours like clockwork.

Anyone got any ideas ?

TIA
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Jul 19, 2004 11:32 am    Post subject: Reply with quote

Grand High Poobah

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

Are you sure you are releasing the resources right ?
Just disconnecting won't do it.

F.J.
Back to top
View user's profile Send private message Send e-mail
gunner
PostPosted: Mon Jul 19, 2004 10:51 pm    Post subject: Reply with quote

Newbie

Joined: 19 Jul 2004
Posts: 3

Thanks for the response !.
We are doing a .close for the Queues followed by a set to Nothing and a .disconnect from the QueueManager followed by a SET obj = NOTHING.

We also set the MQSession to nothing

Is there something else we should be doing do you think ?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Jul 20, 2004 10:01 am    Post subject: Reply with quote

Grand High Poobah

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

I am more familiar with the JMS environment but I will take a shot at it here:
close queue
disconnect queue
set object to null
close session
disconnect session
set object to null
close qmgr
disconnect qmgr
set object to null

You will need to check the functionality. Close/disconnect might be synonyms in some cases.

If it were JMS:
commit/rollback session
stop connection
close sender / receiver
close session
close connection ( might not be possible after session close)
done

FJ
Back to top
View user's profile Send private message Send e-mail
gunter
PostPosted: Tue Jul 20, 2004 10:58 pm    Post subject: Reply with quote

Partisan

Joined: 21 Jan 2004
Posts: 307
Location: Germany, Frankfurt

If a strange problem arises, I'll always ask:
- operating system ?
- mq version ?
- CSD level ?

Did you find anything in the qmgr error log or in the system event log ?
_________________
Gunter Jeschawitz
IBM Certified System Administrator - Websphere MQ, 5.3
Back to top
View user's profile Send private message
gunner
PostPosted: Wed Jul 21, 2004 1:15 am    Post subject: Reply with quote

Newbie

Joined: 19 Jul 2004
Posts: 3

Gunter, thanks for the reply.

MQ Client 5.1 from a VB6 application running on Window 2000 connecting
to a Tandem running MQ Server V2.2.0.1 PTF U473441.

We have no control over the Server as it is owned by a customer. They tell us that they do not see us disconnecting from their listener. There doesn't seem to be much information available from the Server.

Would detailed trace logs from MQ client be off any use ?

thanks
Back to top
View user's profile Send private message
gunter
PostPosted: Wed Jul 21, 2004 1:47 am    Post subject: Reply with quote

Partisan

Joined: 21 Jan 2004
Posts: 307
Location: Germany, Frankfurt

We had a few years ago a problem with hanging listener. That wasn't a client connection, we had problems with channels. The solution was to set AdoptNewMCA in the queuemanager configuration. I do'n't know if this is also a possible solution for client connection problems and I don't know if this parameter exists in your version.

Our problem was always related to network problems. The sender stopped by error and the receiver was still running. The listener didn't accepted furter connections.
_________________
Gunter Jeschawitz
IBM Certified System Administrator - Websphere MQ, 5.3
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Jul 21, 2004 12:05 pm    Post subject: Reply with quote

Grand High Poobah

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

There is another thing you should consider.
Always use MessageListener and ExceptionListener as a pair.
If there is no message and you are waiting but there is a connection problem I would expect that you might get something on the exception listener. You could then try to actively close and reopen the connection.
This should help clear up some resources.

Hope it helps some
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 » General Discussion » MQSeries 2.2.0.1 listener hang issue-Client 5.1 connections
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.