Answer the question
In order to leave comments, you need to log in
Why did the web server take a long time to respond to requests?
Good day.
There is a web server on a virtual machine.
Recently, he began to slow down.
ubuntu system 12.apache2 + mysql. Proftpd is also spinning, which I turned off for verification and it didn’t help (it means it’s not about it)
The news site and forum are spinning on the server. Attendance is very low. Until last weekend, the site worked great. There were no complaints or complaints.
On Monday, it turned out that the site responds to requests for a very long time - more than 10 seconds.
There is nothing special in the logs (most likely I just don’t understand which of these logs can be used).
htop shows that the percentage and memory are loaded no more than 10% (even rarely reaches 5%).
ifstat also does not show any bad (not normal) network activity.
I'm just starting to delve into the structure of web servers and how to monitor (explore) them, so please explain in more detail:
How and where to enable such logging that will give me the necessary data?
Where should you look first?
Answer the question
In order to leave comments, you need to log in
1. Enable slow query logging in MySQL
2. View the Network tab in your browser
iotop-okawithin 3-5 minutes (I opened the pages of the site abundantly) I accumulated the following:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question