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 » Prbm -MQ Channels Open huge

Post new topic  Reply to topic
 Prbm -MQ Channels Open huge « View previous topic :: View next topic » 
Author Message
nm_anand
PostPosted: Wed Nov 01, 2006 10:24 pm    Post subject: Prbm -MQ Channels Open huge Reply with quote

Newbie

Joined: 01 Nov 2006
Posts: 3
Location: bangalre

Hi all

I need urgent help. My J2EE application running on Solaris 9x (Sparc) , Weblogic 8.3 and am using Websphere MQ 5.3. Normally after starting my MQ Server , MQ Channel count is around 5 , After Start my Weblogic Server , MQ Channel count is going around 100. its slow down entire server. plz help me to resolve this issue.


regards
muruganandam
Back to top
View user's profile Send private message Yahoo Messenger
xxx
PostPosted: Wed Nov 01, 2006 11:22 pm    Post subject: Reply with quote

Centurion

Joined: 13 Oct 2003
Posts: 137

you need to use connection pooling
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzaw.doc/csq77cpl.htm
Back to top
View user's profile Send private message
mvic
PostPosted: Thu Nov 02, 2006 2:11 am    Post subject: Re: Prbm -MQ Channels Open huge Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

nm_anand wrote:
MQ Channel count is going around 100. its slow down entire server. plz help me to resolve this issue.

Is 100 too high? Why is it too high? How much of a slowdown do you observe on your server? - remember, J2EE servers take a lot of memory and (for example) a lot of time simply to start the server.

( On the other hand, my MQ queue manager takes a couple of seconds to start up on a laptop )
Back to top
View user's profile Send private message
nm_anand
PostPosted: Thu Nov 02, 2006 2:21 am    Post subject: Reply with quote

Newbie

Joined: 01 Nov 2006
Posts: 3
Location: bangalre

In my case , for receving message from Queue, using MDB and Sending message back to Queue using JMS .

My JMS Sender program using like that

QueueSession session = null;
TextMessage outMsg = null;
String returnValues[]=new String[2];

try
{

//Get the queue connection
if(conn == null) {
iutsQCF =
(ServiceLocator.getInstance()).getQueueConnectionFactory(MessageCommon.IUTSQueueConnectionFactory);

//check for validity(not null)
//Need to check if we can use Connection Pooling here
conn = iutsQCF.createQueueConnection();
//check for validity(not null)
conn.start();
}

session = conn.createQueueSession(true,Session.AUTO_ACKNOWLEDGE);
//check for validity(not null)
outMsg = session.createTextMessage();

and properly closing also.

finally
{
try
{
if(session != null)
{
session.close();
}
}


protected void finalize()
{
try {
if(conn != null)
{
conn.close();
}
}
catch (javax.jms.JMSException je)
{
je.printStackTrace();
}

}
Back to top
View user's profile Send private message Yahoo Messenger
Vitor
PostPosted: Thu Nov 02, 2006 2:57 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

It's a very nice piece of code and very well commented, but what has it to do with the questions mvic asked? Why do you consider 100 a high channel count? We have around 400 and are not alarmed. How much of a slowdown? What other application physically run on the box?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Nov 02, 2006 3:21 am    Post subject: Reply with quote

Grand High Poobah

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

And remember going over a 100 you will need a channel stanza in qm.ini....
The slow down may be caused because your resources have not been defined adequately and the box is starved for resources.

To know what the ideal number of connections is read up on the "JMS Topologies" red book. You should find a link to it somewhere in my earlier posts (up to a year ago or more, or just google for it and you will find it here)

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Thu Nov 02, 2006 4:22 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Or it may be that the application is waiting on an available channel...
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Thu Nov 02, 2006 9:23 am    Post subject: Re: Prbm -MQ Channels Open huge Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

nm_anand wrote:
MQ Channel count is going around 100. its slow down entire server.

I'm guessing that you mean that the J2EE server is slowing down. Do a netstat on both boxes and grep for the MQ listener port.
Code:
netstat -an | grep <port#>

I bet you will see 100 with 'established' state and hundreds or thousands of connections 'close_wait' state.

Your J2EE application has run-away threads making end-less number of connections.

Go tell the J2EE developer to look at their log files and figure out what is broken.

Regards,
Roger Lacroix
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
nm_anand
PostPosted: Thu Nov 02, 2006 9:50 pm    Post subject: Reply with quote

Newbie

Joined: 01 Nov 2006
Posts: 3
Location: bangalre

Dear all

Thanx for reply. My J2EE Application have 12 MDB to Listening JMS - MQ. In the descriptor I assign

<weblogic-enterprise-bean>
<ejb-name>CTLANMDB</ejb-name>
<message-driven-descriptor>
<pool>
<max-beans-in-free-pool>1000</max-beans-in-free-pool>
<initial-beans-in-free-pool>100</initial-beans-in-free-pool> </pool>
<destination-jndi-name>jms/IUTS_CTLAN_REQ_Q
</destination-jndi-name>
<connection-factory-jndi-name>
jms/IUTSQueueConnectionFactory
</connection-factory-jndi-name>
</message-driven-descriptor>
<transaction-descriptor>
<trans-timeout-seconds>300</trans-timeout-seconds>
</transaction-descriptor>
<dispatch-policy>IUTSCTQueue</dispatch-policy>
</weblogic-enterprise-bean>

initial-bean pool size is 100 for my daily transaction MDB.
Is it the root cause for MQ channels open huge?.
My client is frequently complain about MQ Channels count is reaching upto 200. please let me know if u have solution .

regards
muruganandam.n
Back to top
View user's profile Send private message Yahoo Messenger
fjb_saper
PostPosted: Fri Nov 03, 2006 3:10 am    Post subject: Reply with quote

Grand High Poobah

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

Did you read the JMS Topologies I referred you to?
I know you did not or you would not have made the previous post.

Please read it or be RTFM'd.
_________________
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 » Prbm -MQ Channels Open huge
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.