Thread.sleep() Never Returns

十年热恋 提交于 2019-12-03 04:45:58

if your server is running under Linux, you may be hit by the Leap Second bug which appears last week-end.

This bug affects the Linux kernel (the Thread management), so application which uses threads (as the JVM, mysql etc...) may consume high load of CPU.

If your servers uses NTP (as you mentioned) and your CPU usage goes to 100%, check for Clock: inserting leap second 23:59:60 UTC in your dmesg:, if you find that, you are sure that your server affected with Leap Second bug, unfortunately Java is the one which is most effected.

To resolve this, with out restarting any servers (like, tomcat) run the following commands.

/etc/init.d/ntp stop
date `date +"%m%d%H%M%C%y.%S"` 

Hope this helps..

This does seem to be leap second related.

Based on a post at from https://lkml.org/lkml/2012/7/1/19, I did:

date -s "`date`"

and it fixed the problem for me

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!