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


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

RSS Feed for This PostPost a Comment

CAPTCHA Image
Refresh Image
*