使用jstack -l命令可以查看到死锁的线程,请问此时要怎么处理?线程要怎么杀掉呢?还是只能重启服务器?
jstack -l
认证高级PHP讲师
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
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
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
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