Out of control Java processes when dealing with a leap second?(bugzilla.mozilla.org) |
Out of control Java processes when dealing with a leap second?(bugzilla.mozilla.org) |
/etc/init.d/ntp stop; date; date `date +"%m%d%H%M%C%y.%S"`; date;
-- then restart java
date --set "`date`"
2012-07-01 09:59:59 [WARNING] Time ran backwards! Did the system time change?
2012-07-01 10:01:14 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
... and stuck on 100% CPU until I noticed it and restarted it this morning. Thankfully no other issues that I've noticed.wow.
Having looked in to it, it seems our server admin decided to install OpenNTP to replace the standard NTP daemon. I'm not sure why he did that, but it seems OpenNTP just ignores leap seconds and compensates after the fact just as if your clock had drifted a second out of sync in the usual way.
Funny to see your name there!
Many unix things are not as multithreaded as those examples.
minute day hour month year . second
Originally (and perhaps still) the month day is optional; allowing you to set the date with just hour and minute.
People are reporting the same issue with MySQLd, I had it with Firefox.
Surprisingly, none of my servers have had problems, but I don't run Java anywhere.