Linux often crashes, stuck, what should I do?

  

linuxOperating system
The server is in the process of crash or stuck, you can refer to the following items for overall troubleshooting:

a, check the server process and service is taking up too much Memory or no memory release, when the server runs out of memory, then it will quickly crash; b, see if you have cron (plan task, automatic task) in the corresponding time period in /var/spool/cron Execute; c, check whether the parameters of the web server exceeds the performance of the server, such as allowing the maximum number of connections to be too high; d, the number of processes is high, the service is paralyzed, and the machine is suspended (for example, if the zombie process is too much, it always takes up resources); e, cat /var/log/message to check whether the system log is abnormal; f, check the disk for bad blocks. (You can use the badblocks command with parameters) g, the kernel consumption is too large, check whether there are transient processes occupying too large processes or services; h, ps -ef to check whether the process is abnormal, whether there is an attack.

Copyright © Windows knowledge All Rights Reserved