Join wMUsers | Blog at wMUsers | Edit my wMUsers Profile | Site Map | webMethods Jobs |For Employers

wMUsers  

Go Back   wMUsers > webMethods Adapters > JDBC Adapter

Reply
 
Thread Tools Display Modes
  #1  
Old 07-09-2007, 21:44
gordon dong gordon dong is offline
Member
 
Join Date: Feb 2007
Posts: 64
Thanks: 4
Thanked 0 Times in 0 Posts
Default How to wait a JDBC Adapter Connection in the pool?

Hello,

When there is no available connections in the JDBC Adapter Connection pool, the error "The pool doesn't have a connection available for the request" will be gotten. And is there a way to let the service waiting for some minutes to get a connection from the pool instead of throwning an exception? Thanks.
Reply With Quote
Advertisement
  #2  
Old 07-10-2007, 09:19
reamon's Avatar
reamon reamon is offline
Premium Member
 
Join Date: Apr 2003
Posts: 4,806
Thanks: 62
Thanked 183 Times in 143 Posts
Default

Yes. Set the block timeout on the connection configuration. If after waiting the time specified the thread still isn't given a connection, the error will be thrown.
Reply With Quote
  #3  
Old 07-10-2007, 18:06
gordon dong gordon dong is offline
Member
 
Join Date: Feb 2007
Posts: 64
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Thanks Rob.
Reply With Quote
  #4  
Old 07-17-2007, 08:56
vkram vkram is offline
Member
 
Join Date: Apr 2006
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Default The pool doesn't have a connection available for the request.

Hi,

These are my JDBC Adapter connection properties.
Enable Connection true
Minimum Pool 0
Maximum Pool 20
Pool Increment 1
Block Timeout (msec) 1000
Expire Timeout 1000
Startup Retry Count 0
Startup Backoff Timeout 10



I have 20 connections and there is no way(that i can think of) that all the connections get busy at the same time but still I have received the error " The pool doesn't have a connection available for the request".And this happens very rare.

Is there a way to know why exactly this is happening.

Thanks,
Ram
Reply With Quote
  #5  
Old 07-17-2007, 09:51
reamon's Avatar
reamon reamon is offline
Premium Member
 
Join Date: Apr 2003
Posts: 4,806
Thanks: 62
Thanked 183 Times in 143 Posts
Default

The block timeout of 1000 msec (1 sec) is very short. You might consider increasing that.

You can get stats for the pool to see if you really are bumping into max pool size.
Reply With Quote
  #6  
Old 03-09-2010, 20:36
sonam sonam is offline
Senior Member
 
Join Date: Dec 2002
Posts: 541
Thanks: 7
Thanked 6 Times in 4 Posts
Default

"You can get stats for the pool to see if you really are bumping into max pool size."

Hi Rob - I've run into a similar "The pool doesn't have a connection available for the request" issue, but with a custom adapter's thread pool.

Do you know if IS has built-in capabilities (in WmART or something) to check if a custom adapter's thread pool has hit the max. pool size?

Regards,
Sonam
Reply With Quote
  #7  
Old 03-10-2010, 08:58
reamon's Avatar
reamon reamon is offline
Premium Member
 
Join Date: Apr 2003
Posts: 4,806
Thanks: 62
Thanked 183 Times in 143 Posts
Default

The pub.art.connection:getConnectionStatistics could potentially be leveraged for this. I'm not sure but I think if TotalMisses is > 0 then either there was a connection timeout or a block timeout encountered in the past.

Of course the TotalConnections output will tell you the current number of connections if you want to programmatically check what's happening right now.

In the past I've set up a scheduled task to run each minute to call this service and log the results to a stats file, much like the stats.log IS does. This can provide some insight into connection usage.
__________________
-Rob
http://reamon.squarespace.com
Reply With Quote
The Following 3 Users Say Thank You to reamon For This Useful Post:
mcarlson (03-12-2010), sonam (03-10-2010), Suren (03-24-2010)
  #8  
Old 03-10-2010, 18:03
sonam sonam is offline
Senior Member
 
Join Date: Dec 2002
Posts: 541
Thanks: 7
Thanked 6 Times in 4 Posts
Default

Thanks Rob for the very insightful post. I've already gotten some insight based on your reply. I hope eventually to have logs written as you suggested. Using tools like Splunk, it could even be possible to correlate the adapter TotalMisses entries with server/ error log entries.
Reply With Quote
  #9  
Old 04-06-2010, 22:39
sonam sonam is offline
Senior Member
 
Join Date: Dec 2002
Posts: 541
Thanks: 7
Thanked 6 Times in 4 Posts
Default

Based on Rob's comments, I wrote a service with the structure below. It gathers connection statistics for all WmART adapter connections on an IS instance, and presents them on an 'adapter statistics' webpage monitored by an external system monitoring tool.

This lets us monitor connectivity from webMethods to all adapter-connected systems (including webMethods -> wM system DBs)

Thanks again Rob!

Code:
INVOKE pub.art:listRegisteredAdapters
LOOP over /registeredAdapterList
   INVOKE pub.art.connection:listAdapterConnections
   LOOP over /connectionDataList
        INVOKE pub.art.connection:getConnectionStatistics
        Add info to 'adapter statistics' page

Last edited by sonam; 04-08-2010 at 17:40.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP Unable to configure connection manager JDBC adapter 602 wleishman JDBC Adapter 6 08-20-2010 14:36
Problem enabling JDBC Adapter vidyat JDBC Adapter 10 09-05-2007 04:35
webMethods JDBC Adapter 6.5 Now Generally Available mcarlson webMethods and Integration News 1 12-08-2006 14:18
will IS clear the bad JDBC connection out of the JDBC pool? nancy_lyw JDBC Adapter 2 05-31-2006 19:27
JDBC Adapter connection pool problem srivats JDBC Adapter 2 02-01-2005 17:38


All times are GMT -6. The time now is 21:02.


.
All Content Copyright ©2002-2009, Conneva, Inc. DBA wMUsers.Com

wMUsers is an independent organization and is not sponsored in any manner by Software AG or webMethods, Inc.

Page generated in 0.09390 seconds with 17 queries