Sobes.tech
Senior

The user complains that the server is slow and everything hangs. You log in via SSH. What will you do first?

sobes.tech AI

Answer from AI

First, I check the current load on the server to understand what exactly is causing the slowdown. I use the following commands:

  • top or htop — to see processes with the highest CPU and memory usage.
  • free -m — to assess the use of RAM and swap.
  • iostat or vmstat — to check disk subsystem load.
  • df -h — to ensure there is enough free space on the disks.

If the load is high, I look at which processes are causing it and analyze logs to identify possible errors or activity peaks. I also check network activity using netstat or ss if I suspect network issues.