2011/4/7

connection max pool size of web exception

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.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
solution:
1.檢查程式中有沒有忘了關閉 connection
2.減少connection數量
3.在webconfig的ConnectionString中,加入Max Pool Size = 300,如User ID=?;Password=?;Max Pool Size = 300"

沒有留言:

張貼留言