Our app is getting a max connection pool reached on pick times when we run large db actions.
I want to debug this situation, My idea is to check how many connections are open every couple of minuets and if i reach a trash-hold to print all the opened queries in the db.
Is that a good approach? Also, does anyone knows how can i check the how many open connection are there, googling didnt help so far.
I am using MySQL.
TY, Please tell me if any information is missing
Please verify: 1. Use connection pooling - enabled by default (it may turn off) 2. Do not create a globally accessible instance of MySqlConnection and then manually open and close it
Click here for more details.
How to find the active number of open database connections in MySQL:
select * from information_schema.processlist;
Click here for details:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.