linux - Is the Java version vulnerable to leap seconds? -
i want know if java build 1.7.0_51-b13 version vulnerable leap seconds or not?
i have cluster of servers running tomcat. since july 1 have huge cpu usage. tried stop ntp , date -s "date" in vain.
the redhat kernel , tzdata package patched since june.
useful links:
it's down implementation. it's unlikely jvm supports leap seconds.
from java.util.date documentation:
although date class intended reflect coordinated universal time (utc), may not exactly, depending on host environment of java virtual machine. modern operating systems assume 1 day = 24 × 60 × 60 = 86400 seconds in cases. in utc, however, once every year or 2 there second, called "leap second." leap second added last second of day, , on december 31 or june 30. example, last minute of year 1995 61 seconds long, added leap second. computer clocks not accurate enough able reflect leap-second distinction.
(out of interest, , not connected @ java, google ntp servers stretch seconds in day has leap second, time allocated linearly across seconds in day.)
Comments
Post a Comment