W
Wayne Xu
I am maintaining a "real time report" system written in .NET/SQL server, it
include one updater filling data into tables and a web application pooling
data from the tables. Both running in the same time. Web application create
a new SqlConnection object when the page needs pooling data. It closes the
connection once completed. To ensure the report's accuracy, I have to use
"set isolation level to serializable" in the SQL stored procedure.
There are everage 20 users and each user hit the database everay 3 minutes.
Updater refills the tables every minute.
The system works fine in most time of the day, but web brower suddenly
started timeout.
the error is "timeout expired. The timeout period elapsed prior to obtaining
a connection from the pool. This may have occurred because all pooled
connections were in use and max pool size was reached." When this is
happen, you can find over 50 locks in SQL server. It can be cleared by
restart IIS, or renew the web application (means reload).
The problem happened in everage once a night, but with no specific time.
I went to google and found similar question and answer, I followed the
suggestion to set connection object to null, but problem still exists. (try
http://www.google.com/search?hl=en&...eout+connection+pool+full+&btnG=Google+Search
and click on "Connection Pools maxed out?" )
Any idea?
include one updater filling data into tables and a web application pooling
data from the tables. Both running in the same time. Web application create
a new SqlConnection object when the page needs pooling data. It closes the
connection once completed. To ensure the report's accuracy, I have to use
"set isolation level to serializable" in the SQL stored procedure.
There are everage 20 users and each user hit the database everay 3 minutes.
Updater refills the tables every minute.
The system works fine in most time of the day, but web brower suddenly
started timeout.
the error is "timeout expired. The timeout period elapsed prior to obtaining
a connection from the pool. This may have occurred because all pooled
connections were in use and max pool size was reached." When this is
happen, you can find over 50 locks in SQL server. It can be cleared by
restart IIS, or renew the web application (means reload).
The problem happened in everage once a night, but with no specific time.
I went to google and found similar question and answer, I followed the
suggestion to set connection object to null, but problem still exists. (try
http://www.google.com/search?hl=en&...eout+connection+pool+full+&btnG=Google+Search
and click on "Connection Pools maxed out?" )
Any idea?