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

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 | | Oct 14, 2009

Sorry, comments for this entry are closed at this time.