MYSQL Database connections are increasing when DB snapshot occurs
We are facing the slowness issue for MySQL database when the DB snap shot is occurring.
if any query is running form 5 mins and then DB snap shot occurs then all further connections are stuck in queue and result of this is connections are getting increasing. This is leading to database performance issue.
DB snap shot is waiting for previous query to finish and if the pervious query is taking more than 10 mins then connections for MySQL DB are going beyond 100 and performance is going down. Please suggest for how to handle this issue in our database.
Also Please suggest why the database performance is getting down if only 50 connections are running . Is it due to the read lock occurred on the tables. While taking the DB snapshot we are firing the below query.