Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: ODP .Net Connection Pool Problem on Web Application

Re: ODP .Net Connection Pool Problem on Web Application

From: <mingki_at_gmail.com>
Date: 14 Feb 2006 19:35:46 -0800
Message-ID: <1139974546.339849.126000@g47g2000cwa.googlegroups.com>


Hi all, I think I have found a reason for the problem:

The problem is caused by, when the IIS server's "executionTimeout" for httpRequest is reached, IIS will call Thread.Abort() to stop the processing thread for the Request.

For instance, If a web page is requested, meanwhile the database is very busy, the Database can't return all the result to the web application within 40 sec (the default value of executionTimeout in machine.config), this thread will be aborted!

I have just read the Release note of ODP .NET 10.2.0.1.0, in the section "TIPS, LIMITATIONS AND KNOWN ISSUES", it says:

8. Thread.Abort() should not be used, as unmanaged resources may remain unreleased properly, which can potentially cause memory leaks and hangs.

It seems that we can just avoid the problem by setting the executionTimeout value to a reasonablily large value. However, this will greatly affect the web server performance as some Threads will be hold and they are not able to serve other requests.

Please advise!

Regards,
Alex Received on Tue Feb 14 2006 - 21:35:46 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US