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 » MQ Exception Completion Code 2, Reason 2195+2009

Post new topic  Reply to topic Goto page Previous  1, 2
 MQ Exception Completion Code 2, Reason 2195+2009 « View previous topic :: View next topic » 
Author Message
Keka
PostPosted: Sat Oct 20, 2007 8:11 am    Post subject: Reply with quote

Voyager

Joined: 28 Dec 2002
Posts: 96

Just a quick question. Since you are using the application server, are you using a connection pool?? Is it possible that your connection pool has lost connections and your app is unaware of it is trying to use the stale connection object.

if indeed you are using the connection pool what is the purge policy on the connection pool??

if you are not using connection pool, I have seen where the connections to MQ are made in tandom to database. And everytime a database connection is retried a new connection is made to the MQ. Can you check in to this logic??

I know there is no solution suggested here but these detail help troubleshooting the issue better..

Hope that helps.
_________________
Keka
Back to top
View user's profile Send private message
System9
PostPosted: Mon Oct 22, 2007 12:25 am    Post subject: Reply with quote

Newbie

Joined: 10 Oct 2007
Posts: 9
Location: UK

Hi,

I am not using conncetion pool. MQ is not in tandom with Database per my knowledge,because database connection establishes at application startup and it will remain till we stop the application.

Thanks
Srikanth
Back to top
View user's profile Send private message
Nigelg
PostPosted: Mon Oct 22, 2007 4:37 am    Post subject: Reply with quote

Grand Master

Joined: 02 Aug 2004
Posts: 1046

I agree with Peter. The disconnect after 2 hours is because the TCP connection has come to the end of its KeepAlive interval. You can change the interval using a variety of OS commands, different on every platform.

For Linux, the command is:

Quote:


Create/amend file /proc/sys/net/ipv4/tcp_keepalive_time. Insert the interval in seconds.

The parameter takes effect immediately. If the machine is rebooted the parameter is reset to the default value.
To make the change permanent, add a command like:
/#echo 60 >/proc/sys/net/ipv4/tcp_keepalive_time
to the file /etc/rc.d/rc.local script.



The 2195 from the Java client is written when the connection is broken, and is the equivalent of 2009 in the C client, so there is no FDC in the qmgr because the error is generated client side. I expect the qmgr side gets an AMQ9209 in the error log.
_________________
MQSeries.net helps those who help themselves..


Last edited by Nigelg on Mon Oct 22, 2007 10:31 pm; edited 1 time in total
Back to top
View user's profile Send private message
System9
PostPosted: Mon Oct 22, 2007 9:13 am    Post subject: Reply with quote

Newbie

Joined: 10 Oct 2007
Posts: 9
Location: UK

Thanks for the useful information.My only concern of changing this is it will effect other applications in the box.are we having a mechanisam like heartbeat or some thing like that.

Thanks
Srikanth
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » IBM MQ Java / JMS » MQ Exception Completion Code 2, Reason 2195+2009
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.