Connection pooling not pooling
Posted: Mon 07 Apr 2008 15:13
Using this connection string in machine.config:
In each app, I load this connection string, and replace the user, password, and database values accordingly.
I'm loading an ASP.NET page that pulls info from a database, then 5 seconds later reloads the page (which again pulls info from a database).
In my global.asax file when the page is unloaded the connection is closed. I've debugged this portion and can confirm the object = nothing before the browser displays the page.
I started DBMonitor because I'm noticing a new connection every time the page is refreshed. In the left pane I see a new MySqlInternalConnection and MySqlConnection every time it refreshes.
Here's the log:
http://img230.imageshack.us/my.php?imag ... 031mu6.gif
Question: why did it create new connections?
Code: Select all
Host=MYSERVER;Port=3306;User ID=MYUSER;Password=MYPASSWORD;Pooling=true
I'm loading an ASP.NET page that pulls info from a database, then 5 seconds later reloads the page (which again pulls info from a database).
In my global.asax file when the page is unloaded the connection is closed. I've debugged this portion and can confirm the object = nothing before the browser displays the page.
I started DBMonitor because I'm noticing a new connection every time the page is refreshed. In the left pane I see a new MySqlInternalConnection and MySqlConnection every time it refreshes.
Here's the log:
http://img230.imageshack.us/my.php?imag ... 031mu6.gif
Question: why did it create new connections?