A
A
Alexey2020-04-16 16:18:44
linux
Alexey, 2020-04-16 16:18:44

How to catch a process that loads the CPU on the server?

There is a server on Ubuntu Server 16.04, which has been running on Yandex.Cloud for a year and a half, there were no problems, but just yesterday I saw in cloud monitoring that the server is always 100% loaded. The funny thing is that as soon as you enter the server via ssh, the entire load disappears and top does not show any extra processes, everything is fine. You close the console and the load appears again. Then I went in again and quickly executed the command

ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%cpu | head -n 3

And in the first place I saw the line
PID  PPID CMD                         %MEM %CPU
14455 56240 lmevk                       59.3  198

After a second, this process disappeared. If you enter the lmevk command, then no such command was found.
Next I tried to find the parent process by PPID
$ ps -p 56240
  PID TTY          TIME CMD
56240 ?        00:00:40 noazjd

What could it possibly be? How to catch more details about this process?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dimonchik, 2020-04-16
@dimonchik2013

dump and to LAN for preparation

K
ky0, 2020-04-16
@ky0

Log ʻom atop, then look.

V
Victor Taran, 2020-04-16
@shambler81

iotop-oka

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question