Linux server keeps restarting

Encountered a problem, the server can ping through, so I restarted the project, and the ping failed. It will be better. Ping will not work during this period. 

Simply record

// 长ping IP,ctrl+c或者关闭窗口才能终止

ping ip -t

// 重启服务器

# reboot 

View server logs 

Linux system files are usually in /var/log.

Find the problem and search for a solution:

The system log contains a lot of information about "echo 0> /proc/sys/kernel/hung_task_timeout_secs" disables this message .

Search reasons and solutions:

// 方便复制

# sysctl -w vm.dirty_ratio=10
# sysctl -w vm.dirty_background_ratio=5
# sysctl -p


#vi /etc/sysctl.conf

vm.dirty_background_ratio = 5
vm.dirty_ratio = 10

After the manual restart has been resolved, the useless later is still recorded.

 

Other link references:

linux restart view log and historical record query reason: https://blog.csdn.net/xiaoxiaovbb/article/details/82760919

Solutions for hung_task_timeout_secs and blocked for more than 120 seconds:

http://www.cnblogs.com/wshenjin/p/7093505.html

 

Guess you like

Origin blog.csdn.net/little_skeleton/article/details/87253609