TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Out of control Java processes when dealing with a leap second?

87 pointsby wzmalmost 13 years ago

17 comments

silviosantozalmost 13 years ago
Leap second + Java + Linux fix (without reboot):<p>/etc/init.d/ntp stop; date; date `date +"%m%d%H%M%C%y.%S"`; date;<p>-- then restart java
评论 #4183667 未加载
评论 #4183720 未加载
评论 #4183654 未加载
评论 #4184540 未加载
评论 #4184123 未加载
评论 #4183701 未加载
评论 #4183631 未加载
评论 #4183607 未加载
rasuralmost 13 years ago
I had a lovely morning (2am-4.30) rebooting about 50 boxes by hand. All wearing some shade of java.
Maxiousalmost 13 years ago
Reddit is also down due to Java <a href="https://twitter.com/redditstatus/status/219244389044731904" rel="nofollow">https://twitter.com/redditstatus/status/219244389044731904</a>
cmorrisrsgalmost 13 years ago
We saw this on every Ubuntu Lucid machine we run. Restarting the JVM was insufficient - we ended up fully rebooting the machines.
matthewlmcclurealmost 13 years ago
Would love to read a root cause analysis of the relevant source code. Anyone have a link?
评论 #4183692 未加载
评论 #4183706 未加载
nickzoicalmost 13 years ago
I didn't really think about it at the time, but right about then (I'm in GMT+10) a Minecraft server (OpenJDK 64-bit, Ubuntu 11.10) I had running got rather upset ...<p><pre><code> 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? </code></pre> ... and stuck on 100% CPU until I noticed it and restarted it this morning. Thankfully no other issues that I've noticed.
aSigalmost 13 years ago
I saw the same across all of our Ubuntu servers. Some running Tomcat others running SmartFox Server (a java based game server). A reboot + app restart fixed it.
burningoutalmost 13 years ago
I was just wondering why everything stopped working at night. System.exit() didn't work anymore in any of the java processes, or just random hangs.<p>wow.
stevencoronaalmost 13 years ago
Even if you're not running java in your stack, it's worth a quick check on your servers. Our SoftLayer servers use an Adaptec RAID card and the monitoring software uses the JVM and will suck up all of your CPU. All of our MySQL/Cassandra/Redis/Kestrel servers needed to be bounced because they had RAID cards. Frustrating.
评论 #4184310 未加载
评论 #4183970 未加载
_joealmost 13 years ago
Same problem here. I am supposedly on vacation in Barcelona and was summoned to help :/ Gotta love your java.
评论 #4184454 未加载
gourangaalmost 13 years ago
At the risk of shooting myself, all our jvms were fine on windows and Ubuntu.
DEinspanjeralmost 13 years ago
Fun that a bug for my team happens to be the thing linked in this article. :)
评论 #4183683 未加载
ryanpersalmost 13 years ago
its the futex() call that is bugged, so therefore things that are highly multi-threaded... for example mysql and java!<p>Many unix things are not as multithreaded as those examples.
_thekevalmost 13 years ago
I was able to restore my java app boxen (and all other boxen) by only setting the date to the current date. No restarts necessary.
matthewlmcclurealmost 13 years ago
What's the explanation of that wacky date format?<p>minute day hour month year . second
评论 #4184108 未加载
rbanffyalmost 13 years ago
I experienced no problem today. Is this Java-specific?
评论 #4184006 未加载
评论 #4183633 未加载
spullaraalmost 13 years ago
Has anyone seen this not on Ubuntu?
评论 #4183660 未加载
评论 #4183643 未加载
评论 #4184466 未加载
评论 #4183669 未加载