Not clearing connection pool!
Not clearing connection pool!
Hi,
I have tested mysql direct and i like it, its the fastest connector arround. But before i buy it i found an issue with clearing the current connection pool when you update the asp.net application. Let me clarefy things:
When you have an asp.net (webservice) application running there are connections made and these are being pooled, the connections remain open to the mysql server. Now when you rebuild the application and so refreshing the dll's etc. the connections that are opened with the previous build will not get closed and the new build adds new connections. After a few builds you run out of connections to the database. The same thing happens with the dbexplorer it keeps adding connections for almost every operation you perform.
I'm using Visualstudio 2003 and MySqlDirect v2.80.
Hope this can be fixed in a new build. Or maybe i'm doing something wrong? but other connectors don't seem to have this problem but they are so slow
Richard.
I have tested mysql direct and i like it, its the fastest connector arround. But before i buy it i found an issue with clearing the current connection pool when you update the asp.net application. Let me clarefy things:
When you have an asp.net (webservice) application running there are connections made and these are being pooled, the connections remain open to the mysql server. Now when you rebuild the application and so refreshing the dll's etc. the connections that are opened with the previous build will not get closed and the new build adds new connections. After a few builds you run out of connections to the database. The same thing happens with the dbexplorer it keeps adding connections for almost every operation you perform.
I'm using Visualstudio 2003 and MySqlDirect v2.80.
Hope this can be fixed in a new build. Or maybe i'm doing something wrong? but other connectors don't seem to have this problem but they are so slow
Richard.
I don't think thats actually the case, i had a mysql server running with 20 connections max. After a few hours working and a few builds i got the 'too many connections error', so if they really would get cleared after a few minutes i would never have encountered that problem.
i tested it again just now and found that they do not get cleared, i waited for 15mins (why the wait?).
i tested it again just now and found that they do not get cleared, i waited for 15mins (why the wait?).
Please check open connections with MySQL Administrator tool when you get 'too many connections error'.
If all conections are opened by MySQLDirect .NET, please send us small test project if possible to reproduce the problem; it is desirable to use 'test' schema objects, otherwise include definition of your own database objects. Do not use third party components.
If all conections are opened by MySQLDirect .NET, please send us small test project if possible to reproduce the problem; it is desirable to use 'test' schema objects, otherwise include definition of your own database objects. Do not use third party components.