java - 当系统出现线程死锁时怎么处理?
PHP中文网
PHP中文网 2017-04-18 10:48:45
0
3
575

使用jstack -l命令可以查看到死锁的线程,请问此时要怎么处理?线程要怎么杀掉呢?还是只能重启服务器?

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(3)
Peter_Zhu

1. Keep the scene to facilitate subsequent troubleshooting. 2. Assess the severity of the deadlock. If it has affected the service, restart the service to see. 3. Research the cause of the deadlock, fix it, and go online again

PHPzhong

1. Kill
2. Check the code
3. Modify and test online

大家讲道理

In case of deadlock, you can only save the scene and then check the modifications and restart. Livelock may be restored automatically

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template