Skip to content

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

Comments

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

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.

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.

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!

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.