5 ms·
Leap second + Java + Linux fix (without reboot): /etc/init.d/ntp stop; date; date `date +"%m%d%H%M%C%y.%S"`; date; -- then restart java
by silviosantoz 14y ago
Leap second + Java + Linux fix (without reboot):
/etc/init.d/ntp stop; date; date `date +"%m%d%H%M%C%y.%S"`; date;
-- then restart java
- timdoug 14y agoWorks wonders for me. Thanks!
- orphan_annie 14y agoyou saved the orphanage!
- zship 14y agoThank you! Was banging my head against the wall on RHEL6's tomcat. Went on Hacker News to stop thinking about it for a few minutes. Son of a bitch, the solution was right on the front page.
- smokestack 14y agoThis is what worked for us. Credit to https://bugzilla.mozilla.org/show_bug.cgi?id=769972#c5 https://bugzilla.mozilla.org/show_bug.cgi?id=769972#c5
- stevencorona 14y agofixed it for Twitpic too
- _thekev 14y agoA lot simpler: date --set "`date`"
- larelli 14y agoOn a localized box, I had to run "unset LANG" first, because otherwise date doesn't seem to understand its own output.
- juiceandjuice 14y agoDoesn't work for everyone (Didn't work with our java processes on RHEL 6.2)
- henrikschroder 14y agoWhere were you 11 hours ago when we rebooted all of our cassandra and mysql machines? :-)