Reason for time inconsistency between the JVM clock and the system clock on a HP-UX machine.

Reason for time inconsistency between the JVM clock and the system clock on a HP-UX machine.

book

Article ID: KB0086765

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks -
Not Applicable -

Description

Resolution:
Description
= = = = = =
Reason for time inconsistency between the JVM clock and the system clock on a HP-UX machine.

Resolution
= = = = = =
Please find the following explanation from HP's website. Notethat this URL is subject to change.

http://docs.hp.com/en/JDKJRE50RN/jdk_rnotes_5.0.html#date_time

Date/Time methods defaults

The HotSpot JVM uses the gettimeofday() system call to obtain date and time information. For performance reasons a new mechanism that uses the number of CPU ticks since the application started is used to calculate the current time. As a result, changes to the system date or time using date(1), adjtime(2) or time synchronization utilities such as ntp will not be reflected in the date and time that the Java program returns, until the process is restarted.

If your application requires that system time changes are immediately reflected, you can use the -XX:+UseGetTimeOfDay option to tell the JVM to use the gettimeofday call instead of the new, lightweight mechanism. However you may notice a drop in performance.

If you want to make mentioned property effective on your BW application please add it to deployed engine TRA file java extended properties like the following:

java.extended.properties=-XX:+UseGetTimeOfDay

Issue/Introduction

Reason for time inconsistency between the JVM clock and the system clock on a HP-UX machine.