Author |
Message
|
kavithadhevi |
Posted: Tue Aug 10, 2004 11:14 am Post subject: |
|
|
 Master
Joined: 14 May 2002 Posts: 201 Location: USA
|
Shalini,
Did you look at the channel disconnect interval option in the manual.
THis option disconnects automatically, if the channel is idle with no activities.
Is that what you are looking for ?
Hope this helps. _________________ Thanks in Advance.
Kavitha
IBM Certified System Administrator
Websphere MQ v 5.3
www.zealphoenix.com |
|
Back to top |
|
 |
bower5932 |
Posted: Tue Aug 10, 2004 12:17 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
The DISCINT parameter is used on the qmgr-to-qmgr channels. I thought this problem was related to client-to-qmgr channels. |
|
Back to top |
|
 |
Shalini |
Posted: Tue Aug 10, 2004 8:39 pm Post subject: |
|
|
Master
Joined: 30 Apr 2002 Posts: 224 Location: India
|
Hi,
The problem is Client to QMGR related so I cannot use Channel disconnnect time.
To be more breif I have a Client who is remote and He connects to my QMGR and due to some network issues they disconnect without disconnecting to QMGR.But the connection persists.
This way each time they connect the connection persists does not disconnects.
Iam looking for a timeout period in QMGR / Client connection channel / server conn channel.
ie This should check that if the particular connection from Client is not used for say 2 hrs disconnect them.
Its purely Client to server connection.
Can you please help on the same
Thanks
 |
|
Back to top |
|
 |
PeterPotkay |
Posted: Wed Aug 11, 2004 4:55 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Turn KeepAlive on for the Queue Manager. It will use the system value (default is 2 hours) to drop orphaned connections. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
Shalini |
Posted: Wed Aug 11, 2004 5:05 am Post subject: |
|
|
Master
Joined: 30 Apr 2002 Posts: 224 Location: India
|
Hi PeterPotkay,
Thanks for reply.
Can I change the value to say 1 hrs or 30 minutes (ie) Can I set this value in QM itself.If so which Properties I have to change
 |
|
Back to top |
|
 |
PeterPotkay |
Posted: Wed Aug 11, 2004 5:07 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
You can tell the QM to use the system's KeepAlive value or not.
Changing the system's KeepAlive value to 90 minutes is an Operating System function, not an MQ function. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
Shalini |
Posted: Wed Aug 11, 2004 5:22 am Post subject: |
|
|
Master
Joined: 30 Apr 2002 Posts: 224 Location: India
|
Hi PeterPotkay,
Thanks for Reply.
Can you please let me know which command (O.S Command) I have to use to change the default value for.
1) Windows
2) Solaris (Any Kernal param to be changed or any unix command) etc.,
 |
|
Back to top |
|
 |
Shalini |
Posted: Thu Aug 12, 2004 3:05 am Post subject: |
|
|
Master
Joined: 30 Apr 2002 Posts: 224 Location: India
|
Hey,
I have tried using KeepAlive option of Queue Manager, but it does not work.
I have simulated the issue into my system with remote Client.
But the Connection persists for more than 20 hours till now even though the client disconnected due to network issue.
As I understood from PDF KeepAlive option from contact admin
"Check this to cause TCP/IP to check periodically that the other end of the connection is still available, and close the channel if it isn't"
Seems to QM (Channel to Channel health check) to QM Server check not Client to QMServer.
But I want to throw away the Client connection persisting in my QM if unused more than QM configured time.
Please let me know, If I have understood the concept of KeepAlive correctly or I need to do some more changes.
MQ5.3 CSD5 Windows 2000
The Changes I did was went to QM Service :Opened the Queue Manager Service went to TCP tab and selected the KeepAlive option and clicked Apply and then OK.
Then simulated the issue the connection was persisting
 |
|
Back to top |
|
 |
Shalini |
Posted: Thu Aug 12, 2004 3:25 am Post subject: |
|
|
Master
Joined: 30 Apr 2002 Posts: 224 Location: India
|
Hi,
One more info.
My Client Application is pure MQ Java connects thro SVRCONN channel.
The problem is when The network from the client breaks in between it cannot issue the QMGR.diconnect(), hence each time it connects to my QM uses the new connection (not the old one )
Resulting increasing the persistence QM Connection and on one bad day: cry: I get (MAX active channel to client have exceed )
So I want to take out all orphan connection from QM side but Iam unable to do that
 |
|
Back to top |
|
 |
PeterPotkay |
Posted: Thu Aug 12, 2004 8:10 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Stop and start the QM to pick up the change.
Verify that KeepAlive is not set to 500 hours or some other big number. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
PeterPotkay |
Posted: Thu Aug 12, 2004 3:32 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Quote: |
Wouldn't stopping and restarting the offending channel free the hung connections ?
|
Yeah, probably. But I'm telling him to bounce the QM to pick up the KeepAlive change, not to clear up the channels. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
Shalini |
Posted: Mon Aug 16, 2004 12:45 am Post subject: |
|
|
Master
Joined: 30 Apr 2002 Posts: 224 Location: India
|
Quote: |
Verify that KeepAlive is not set to 500 hours or some other big number.
|
How to verify KeepAlive values for Windows QM in the TCP Service tab.
I could see KeepAlive and ListenerBacklog.
I donot see any option to specify KeepAlive time out
 |
|
Back to top |
|
 |
PeterPotkay |
Posted: Mon Aug 16, 2004 3:48 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Quote: |
Turn KeepAlive on for the Queue Manager. It will use the system value (default is 2 hours) to drop orphaned connections.
|
_________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
Shalini |
Posted: Mon Aug 16, 2004 6:15 am Post subject: |
|
|
Master
Joined: 30 Apr 2002 Posts: 224 Location: India
|
How do I know that
Quote: |
Verify that KeepAlive is not set to 500 hours or some other big number. |
 |
|
Back to top |
|
 |
PeterPotkay |
Posted: Mon Aug 16, 2004 10:50 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Talk to your System Administrator for the server. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
|