From: Charles Oliver Nutter Date: 2009-06-09T09:05:34+09:00 Subject: Re: [JRuby 1.1.3 -- Glassfish 9.1_01] Time slowly out of sync? Robert Klemme wrote: > 2009/6/5 David Westerink : >> I hope you can help me with this very strange issue I'm having... >> I have an application in JRuby on GlassFish deployed on 2 servers. One >> is production, the other is fail-over. We had an power outage a few >> days ago, and now I'm having a strange issue on the production server. >> It seems that the application (NOT the server) is slowly losing track >> of time... > >> As you can see, the time goes way off!!! >> >> How can this be happening? Is there a way I can sync time in JRuby >> (GalssFish doen't seem to be the issue) with the server time? >> >> Anyone with some help/anwsers/hints? > > We had a similar issue just recently with a JVM run on HP Itanium. It > turned out that it was the JVM not using a system call to get at the > time but did some internal sampling. This was remedied by using JVM > option "-XX:+UseGetTimeOfDay": > > http://www.google.com/search?q=%22-XX%3A%2BUseGetTimeOfDay%22 > > Knowing that the HP JVM is written by Sun and OEM'ed by HP I would not > totally exclude the possibility of a similar phenomenon on Solaris > although we did not observe this yet. Wow, very interesting. I'd never seen or heard of that issue before. Thanks for the pointer! - Charlie