﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Business Objects and Data Access (How do I?)  » Connection Pooling Not Releasing Connections</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 10:02:19 GMT</lastBuildDate><ttl>20</ttl><item><title>Connection Pooling Not Releasing Connections</title><link>http://forum.strataframe.net/FindPost11913.aspx</link><description>&lt;br&gt;
Were working on a web app with an Oracle backend and were seeing some strange behavior.&lt;br&gt;
&lt;br&gt;
Connections to the database are not being dropped.  Is there something were supposed to call to end the connection at the end of the page request?&lt;br&gt;
&lt;br&gt;
We can see this issue by implementing the following pseudo code.&lt;br&gt;
&lt;br&gt;
protected void Page_Load(object sender, EventArgs e)&lt;br&gt;
{&lt;br&gt;
     BusinessObject1.FillAll();&lt;br&gt;
}&lt;br&gt;
protected void SaveButton_Click(object sender, EventArgs e)&lt;br&gt;
{&lt;br&gt;
     BusinessObject2.FillAll();&lt;br&gt;
     BusinessObject3.FillAll();&lt;br&gt;
     BusinessObject4.FillAll();&lt;br&gt;
}&lt;br&gt;
&lt;br&gt;
Now watching the database connections one connection gets created on page load.  The SQL that gets called is the SQL that is defined in my FillAll() method. &lt;br&gt;
&lt;br&gt;
When I click my SaveButton and fire the Click event I see another connection in the database, this one executes three SQL statements, the ones detailed in BO2, BO3, and BO4 FillAll() methods.&lt;br&gt;
&lt;br&gt;
The problem is that my connections never go away.  If I refresh the page I get 2 more connections, and they never go away either.&lt;br&gt;
&lt;br&gt;
What have I missed?&lt;br&gt;
&lt;br&gt;
Thanks &lt;br&gt;</description><pubDate>Mon, 08 Oct 2007 16:19:11 GMT</pubDate><dc:creator>Rob Toyias</dc:creator></item><item><title>RE: Connection Pooling Not Releasing Connections</title><link>http://forum.strataframe.net/FindPost11920.aspx</link><description>Ben and Trent,&lt;br&gt;
&lt;br&gt;
That was the issue exactly!  Thanks for the fix.</description><pubDate>Mon, 08 Oct 2007 16:19:11 GMT</pubDate><dc:creator>Rob Toyias</dc:creator></item><item><title>RE: Connection Pooling Not Releasing Connections</title><link>http://forum.strataframe.net/FindPost11918.aspx</link><description>Have you explicitly turned off connection pooling in your connection string?&amp;nbsp; If you don't explicitly turn it off, then the ADO.NET Oracle provider will not explicitly close connections (even if you call OracleConnection.Close()).&amp;nbsp; We use the OracleDataAdapter class to open and close the connections for us when filling a DataTable, so it is out of our control unless you turn off the connection pooling.&amp;nbsp; Once a connection is garbage collected, it will be returned to the pool to be reused.</description><pubDate>Mon, 08 Oct 2007 13:49:10 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Connection Pooling Not Releasing Connections</title><link>http://forum.strataframe.net/FindPost11917.aspx</link><description>Trent,&lt;br&gt;
&lt;br&gt;
We are using the following two systems:&lt;br&gt;
&lt;br&gt;
DB SERVER&lt;br&gt;
Windows Server 2003 32 bit standard edition SP 2&lt;br&gt;
Oracle Server 10.2.0.3 32 bit&lt;br&gt;
&lt;br&gt;
APP SERVER&lt;br&gt;
Windows Server 2003 32 bit standard edition SP 2&lt;br&gt;
Oracle Client 10.2.0.3 32 bit&lt;br&gt;
&lt;br&gt;
It's the standard web server scenario, web server talks to db server.  Both are in the same facility (physically right next to each other).&lt;br&gt;
&lt;br&gt;
this enough info, or is there more you'd like?</description><pubDate>Mon, 08 Oct 2007 13:43:22 GMT</pubDate><dc:creator>Rob Toyias</dc:creator></item><item><title>RE: Connection Pooling Not Releasing Connections</title><link>http://forum.strataframe.net/FindPost11916.aspx</link><description>It could have something to do with your IIS and application&amp;nbsp;pooling, so the more detail you can give on your server setup the more it would help.&amp;nbsp; Thanks.</description><pubDate>Mon, 08 Oct 2007 13:29:09 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Connection Pooling Not Releasing Connections</title><link>http://forum.strataframe.net/FindPost11915.aspx</link><description>Rob,&lt;P&gt;This may explain some of your other problems as well.&amp;nbsp; StrataFrame does not keep connections open to the database at all.&amp;nbsp; It is only open long enough to execute the query and then we explicitly close the connection.&amp;nbsp; We are still in the process of getting our Oracle server restored (we rebuilt our server where Oracle previously resided), so I cannot immediately test this.&amp;nbsp; But it sounds as though there is something else in the mix here.&lt;/P&gt;&lt;P&gt;What is your setup (OS, Service Packs, layout, etc)? Thanks.</description><pubDate>Mon, 08 Oct 2007 13:19:22 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>