E
E
Ernest Faizullin2018-03-09 15:19:18
Nginx
Ernest Faizullin, 2018-03-09 15:19:18

The server 4 times a day is completely clogged by 100% for CPU and 100% for RAM. Cause?

Hi all. We use nginx + php-fpm + mysql + laravel framework. In other words, LEMP.
I noticed that 4 times a day the server is 100% full. For about 5 minutes everything completely falls down and the server does not respond. It takes 5 minutes - everything is fine.
How to identify the cause? With using what?
What could be the reasons? If the reason is in the code, then how to trace the weak spot in the code?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
asd111, 2018-03-09
@erniesto77

Set up monitoring. For example zabbix.
For mysql and nginx, you can enable logging of slow queries.

B
Boris Korobkov, 2018-03-09
@BorisKorobkov

Learn server administration (top, iostat, ps, show processlist, logs, etc.) or contact a good admin.
If the problem occurs regularly at the same time, check cron first.

L
lega, 2018-03-09
@lega

clogged 100% for CPU and 100% for RAM

If there is not enough RAM, then the swap starts pumping, because of this, everything slows down. Look for tasks that eat up all the RAM.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question