This content has been marked as final. Show 3 replies
As a work around, we use 32 bit Oracle 11g Release 2 ODAC 18.104.22.168.2 on Windows 2008 R2 64bit server. The application pool in IIS was then set to 'Enable 32-Bit Applications = true'.
Once set, connections to database server is at a steady no. 3, which is the Min Pool Size value.
Oh, by the way, the ODP.NET that comes with Oracle 11g r2 client does not produce any Windows Performance Counter. Only the 32 bit ODAC 22.214.171.124.2 produce the Windows Performance Counter.
I used TCPView.exe to monitor the no. of connections.
I do hope that someone would answer for the 64bit ODAC on 11g r2.
The only thing that jumps out within your problem description is that connections are being increased every 5 minutes. Are you sure its every 5 minutes and not 3 minutes which is the timing interval used by the Connection Pool facility to perform connection pool maintenance. If this occurs even when the application is idle then you could be running into the following known issue filed against 126.96.36.199.0 and fixed in 188.8.131.52.2.
Bug 9711600 - CONNECTIONS INCREASE BEYOND MAX POOL SIZE EVERY 3 MINUTE
This is specific to using the option CommandBehavior.CloseConnection when calling execute reader. Are you using this option and then also closing the connection in code before the datareader object is closed, if so you may be hitting this bug. You can also generate an ODP trace at level 15 of the behavior and if you see negative pool counts, that is also a diagnostic that points to this bug.
This is fixed in 184.108.40.206.0 Patch 3 or later for x64. If you have support, I recommend you open a service request to verify if this is your issue and if a patch set may help you.