RSS Feed for This PostCurrent Article

Java Application Time Sync Problem

JVM is default to calculate the current system date time using the number CPU ticks when it is started.

This may be a problem if you operating system is time synched. You may notice the JVM time is different from the OS time.

See below

http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1234755920347+28353475&threadId=997540

http://www.javakb.com/Uwe/Forum.aspx/java-programmer/8471/HP-UX-Java-1-3-1-02-date-time-differences

One solution is to use -XX:+UseGetTimeOfDay but it may have performance impact.


Trackback URL


1 Trackback(s)

  1. From Java: Time Synchronization Trick in Programming | twit88.com | Oct 14, 2009

RSS Feed for This PostPost a Comment

*