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 » WebSphere Message Broker (ACE) Support » Esql/Compute db threads question

Post new topic  Reply to topic Goto page 1, 2  Next
 Esql/Compute db threads question « View previous topic :: View next topic » 
Author Message
er_pankajgupta84
PostPosted: Wed Feb 15, 2012 10:25 am    Post subject: Esql/Compute db threads question Reply with quote

Master

Joined: 14 Nov 2008
Posts: 203
Location: charlotte,NC, USA

According to the documentation -

When you start a broker, and while it is running, it opens connections to WebSphere® MQ queues and to databases. The broker makes the connections when it needs to use them, and they remain open until one of the following events occurs:

1. The message flow has been idle for one minute (time configurable)
2. The message flow is stopped
3. The broker is stopped

Where we can configure the 1st property thru maxConnectionAge property.

This should hold good if I am doing db operation using eqsl in compute node.
Has anyone observed a deviation from this understanding ?

We ran a load test and found there are 100 DB threads remains active even after 24 hours of the load completion.

Can anybody comment on this?

It's a old production system and it also had db access thru java-jdbc and it could be possible that some clients (using java) might not have closed the connection after doing db operation.

But I would like to make sure that those are not any internal broker managed threads before looking into the java piece.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
lancelotlinc
PostPosted: Wed Feb 15, 2012 11:08 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

The behavior changes between versions. V6 behaves differently than V7. V8 has pre-emptive database connections.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
deepnair
PostPosted: Wed Feb 15, 2012 11:10 am    Post subject: Reply with quote

Apprentice

Joined: 07 Feb 2012
Posts: 35

Quote:
V8 has pre-emptive database connections

lancelotlinc - did u mean "connection pooling" in V8 ?

Thanks,
Deep Nair
Back to top
View user's profile Send private message
er_pankajgupta84
PostPosted: Wed Feb 15, 2012 11:12 am    Post subject: Reply with quote

Master

Joined: 14 Nov 2008
Posts: 203
Location: charlotte,NC, USA

My Bad - I didn't specify the version

I am on WMB 6.1 with FP 3 on Z/os.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
er_pankajgupta84
PostPosted: Wed Feb 15, 2012 11:31 am    Post subject: Reply with quote

Master

Joined: 14 Nov 2008
Posts: 203
Location: charlotte,NC, USA

Further notes (for WMB 6.1) -

Each broker needs the following connections:

1. Five for internal broker threads. 2.One for each Publish/Subscribe neighbor, if you are using retained publications and the topology has been deployed.
3. One for each message flow thread that contains a Publication node, if you are using retained publications.
4. One for each message flow thread that parses MRM messages.
5. A further number if you are using SCADA nodes with WebSphere® MQ Everyplace®. The exact number to add depends on whether thread pooling is being used (determined by the Use Thread Pooling property of the SCADAInput node):

If you are using the same database for several brokers, include all brokers in your calculations.

When you start a broker, it opens all connections that it needs to the broker database for its own operation. When you stop the broker, it releases all current database connection handles.

The broker also opens connections to WebSphere MQ queues and to user databases when it needs to use them, and these connections remain open until:
The connection has been idle for one minute
The broker is stopped

Still its written that these connections are closed if idle for 1 min
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
mqjeff
PostPosted: Wed Feb 15, 2012 11:52 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

You should review the list of APARS in 6.1 between FP3 and FPLatest (which I think is FP10).

You might find APARs in this area that you can apply or use to justify applying the entire FP.

But odds are good that it's the JDBC code leaving things open, rather than the ODBC code in broker...
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Wed Feb 15, 2012 12:21 pm    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

er_pankajgupta84 wrote:
My Bad - I didn't specify the version

I am on WMB 6.1 with FP 3 on Z/os.


z/OS is spelled with a lower case z and upper case OS. Yes, it matters.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
er_pankajgupta84
PostPosted: Wed Feb 15, 2012 12:30 pm    Post subject: Reply with quote

Master

Joined: 14 Nov 2008
Posts: 203
Location: charlotte,NC, USA

Thanks guys.

i checked at - http://www-01.ibm.com/support/docview.wss?&uid=swg27015978#4
no APARS has been mentioned for this.

So I have to look at the java code now.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
er_pankajgupta84
PostPosted: Fri Feb 24, 2012 8:24 am    Post subject: Reply with quote

Master

Joined: 14 Nov 2008
Posts: 203
Location: charlotte,NC, USA

Further discovery showed that the 100 connections I was refereing to were only ODBC connections.

All the java related connections are JDBC type 4. These were couple of leaks in that and we fixed it. Still these 100 ODBC connections are active on database even we stop load testing.

We don't use any database node just esql.

Can someone provide some pointer
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
lancelotlinc
PostPosted: Fri Feb 24, 2012 9:39 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

er_pankajgupta84 wrote:
Can someone provide some pointer


http://www-304.ibm.com/jct03001c/services/learning/ites.wss/us/en?pageType=course_description&courseCode=WM663
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
smdavies99
PostPosted: Fri Feb 24, 2012 9:53 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

lancelotlinc wrote:
er_pankajgupta84 wrote:
Can someone provide some pointer


http://www-304.ibm.com/jct03001c/services/learning/ites.wss/us/en?pageType=course_description&courseCode=WM663


Ok, I give in. since when did the WM663 course get into Broker on z/OS Performance?

Suggesting that someone who is clearly beyond a beginner attend basic training is not very constructive (IMHO)
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Fri Feb 24, 2012 10:14 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

smdavies99 wrote:
lancelotlinc wrote:
er_pankajgupta84 wrote:
Can someone provide some pointer


http://www-304.ibm.com/jct03001c/services/learning/ites.wss/us/en?pageType=course_description&courseCode=WM663


Ok, I give in. since when did the WM663 course get into Broker on z/OS Performance?

Suggesting that someone who is clearly beyond a beginner attend basic training is not very constructive (IMHO)


I'm not in agreement with your assessment of skill level.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Fri Feb 24, 2012 10:42 am    Post subject: Reply with quote

Grand High Poobah

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

lancelotlinc wrote:
I'm not in agreement with your assessment of skill level.


Based on?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
er_pankajgupta84
PostPosted: Fri Feb 24, 2012 10:43 am    Post subject: Reply with quote

Master

Joined: 14 Nov 2008
Posts: 203
Location: charlotte,NC, USA

@lancelotlinc - spelling z/OS correctly doesn't define your skill set. Even it does then this forum is for helping other and not for funny replies.

People will appreciate you when you reply sensibly.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
lancelotlinc
PostPosted: Fri Feb 24, 2012 10:44 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

My subjective assessment, not the least of which is spelling.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Esql/Compute db threads question
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.