How to find out what loading the server?

0 like 0 dislike
3 views
A vps loaded on 10-15% usually. But recently, the load of vapola to 30-40%, although the number of site visits sushestvenno not izmenilos. How to find out what loading the server?
by | 3 views

5 Answers

0 like 0 dislike
Specifically for Apache there is such a tambourine.
\r
1. Open top catch high-load pid Apache
2. Go to server status, calculated there is this pid and see what he does
\r
Option 2:
1. the same thing
2. lsof -p PID will show with what resources works pid
by
0 like 0 dislike
the command htop (install from packages if not present)
or top
this is a system monitor that will show what processes what and how much you eat.
by
0 like 0 dislike
munin set and link it with Apache, nginx and a bunch of all, it is about the system will tell you everything and parishes bots and much more
by
0 like 0 dislike
atop and watch the logs (atop logs load and allows it to "flip through", observing the output of atop at 10-minute intervals).
by
0 like 0 dislike
in the Apache logs, you can enable record processing time of each request
let's see who this time long, so calculate not only the website but also the specific location of the site
\r
LogFormat "%h %l %u %t \\"%r\\" %>s %bb %D" common
at the end of the request processing time in microseconds
by
110,608 questions
257,186 answers
0 comments
32,907 users