My website today suddenly became slow and all requests were taking about 2 seconds to complete. Usually it takes like 0.2 second I checked available space on disk and I have a lot.
Memory and CPU usage are usual nothing weird, error log is empty.
Tried to login to MySQL using the following command:
mysql -u root -p
it says "Enter Password" then after I enter the password it takes forever.
then I decided to restart mysql
sudo service mysql restart and it removed the slowness and fixed the problem which I hate, because I don't know what was the problem and how to avoid that in the future or fix.
What do I need to look at in this case, how to get more information about that issue?