Bug 115812 - PooledConnectionSource should output warning in logs when no free connection
Summary: PooledConnectionSource should output warning in logs when no free connection
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Web Application Framework
Classification: Retired
Component: persistence
Version: nightly
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: ccm-bugs-list
QA Contact: Jon Orris
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-02-16 12:00 UTC by Daniel Berrangé
Modified: 2007-04-18 17:03 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-09-02 17:33:16 UTC
Embargoed:


Attachments (Terms of Use)
Example patch (1.99 KB, patch)
2004-02-16 15:38 UTC, Daniel Berrangé
no flags Details | Diff

Description Daniel Berrangé 2004-02-16 12:00:22 UTC
Description of problem:
Running rickshaw in production with default config settings, the
server will appear to hang if many (well more than 3 or 4) people are
using it. There was no significant load on the app server or database,
nor any messages in the logs. We eventually tracked it down to their
being only 10 DB connections allocated, while resin was configured to
have upto 150 requests. Since we increased db pool to 150 the problems
went away. We suspect that the slow running 'category deletion' option
was responsible for triggering the problem because it can tie up a DB
connection for many, many minutes at a time.


The PooledConnectionSource should print out a log4j WARN level message
if it has to put a thread into the 'wait()' call due to lack of DB
connections. This will allow the administrator to more easily diagnose
their scaling problems.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Set DB pool to 10
2. Get lots of people using the server, on slow running pages - eg
deleting a bunch of categories.
3.
  
Actual results:
Requests hang / take much longer than normal, even though machine has
minimal load

Expected results:
Warning message in logs about lack of DB connections.

Additional info:

Comment 1 Daniel Berrangé 2004-02-16 15:38:31 UTC
Created attachment 97703 [details]
Example patch

Comment 2 Daniel Berrangé 2006-09-02 17:33:16 UTC
Closing old tickets



Note You need to log in before you can comment on or make changes to this bug.