Link to home
Start Free TrialLog in
Avatar of Mohlalefi
MohlalefiFlag for Lesotho

asked on

ASP.NET Application with MySQL hosted on IIS

I need help with my ASP.NET MVC application hosted on iis. The application loses connection to MYSQL database after sometime and requires me to restart mysql service then it continues to connect.
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

The application loses connection to MYSQL database after sometime and requires me to restart mysql service then it continues to connect.
what kind of error message is prompting out?
do you still need assistance here?
Avatar of Mohlalefi

ASKER

Yes I still do
But my problem is that I cant identify the real error message behind the behaviour as this does not happen in development environment but only happens in production
do you have some MySQL monitoring tools installed on your server to see if there's any abnormalities ?

alternatively, run some scripts below and see you got high volume on these?
show status where variable_name = 'Threads_connected'

Open in new window


show processlist

Open in new window


and make sure you free the resources, such as close the Connections before you leave your codes?
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.