sequelize 连接数过大,不释放的问题
netstat -anp | grep host | wc -l (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) 1625
我查看对db的连接数,发现这个数据非常大,并且还在增加,sequelize 有配置连接池级回收时间,为啥还是会这样哩? pool: { max: 10, min: 0, idle: 10000 }
PS: 没有用到sequelize中的事务,只是用到很多findAll/update/findCount等等简单api