Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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



This is what worked for us. Credit to https://bugzilla.mozilla.org/show_bug.cgi?id=769972#c5


Thank 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.


A lot simpler:

date --set "`date`"


On a localized box, I had to run "unset LANG" first, because otherwise date doesn't seem to understand its own output.


Where were you 11 hours ago when we rebooted all of our cassandra and mysql machines? :-)


Doesn't work for everyone (Didn't work with our java processes on RHEL 6.2)


fixed it for Twitpic too


you saved the orphanage!


Works wonders for me. Thanks!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: