调度程序模块抛出"最大池大小已达到"

时间:2017-09-27 06:56:29

标签: mysql asp.net connection-string scheduler

我们的应用程序托管一个调度程序,每30秒对数据库执行一次调度,以便运行可用任务。但运行两个小时后,它开始给连接池耗尽错误。我们已经检查过我们已经关闭/放置了用于Mysql的所有连接。

  • 应用程序连接池大小= 200
  • 服务器Max_Connection参数= 1000
  • 连接字符串服务器= localhost;数据库= mydb; Uid = test; Pwd = test;最小池 大小= 10;最大池大小= 200; ConnectionLifeTime = 100; DefaultCommandTimeout = 0;连接超时= 10;允许用户 变量= TRUE;
9/26/2017 12:00:14 AM:MySql.Data.MySqlClient.MySqlException (0x80004005): error connecting: 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.
   at MySql.Data.MySqlClient.MySqlPool.GetConnection()
   at MySql.Data.MySqlClient.MySqlConnection.Open()
   at com.ivp.rad.dal.RMYSQLDBProvider.GetConnection(String connectionString)
HResultDAL -> 0
Message -> error connecting: 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.
ExceptionSource -> MySql.Data
MachineName -> VM-asdf
CustomMessage -> MySql.Data.MySqlClient.MySqlException (0x80004005): error connecting: 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.

0 个答案:

没有答案