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

RSS Feed for This Post1 Comment(s)

  1. Sarkari Naukri | Dec 2, 2015 | Reply

    I am just searching for some good information sites for studying. I was looking over search engines and discovered yuor web blog. Well i love your high quality weblog style along with your posting expertise. Keep doing it.

1 Trackback(s)

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

RSS Feed for This PostPost a Comment

Refresh Image