Time synchronization problem between ESP HP-UX Agent and the dSeries server.

Document ID : KB000053159
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

HP-UX Agent is sending messages with the timestamp about 4 minutes behind the dSeries server time.

Solution:

This problem reflects a feature of HP-UX operating system where 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 an 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.

Solutions for the ESP Agent

To add following statement in the agentpram.txt file (located in the Agent installation directory:

oscomponent.jvm.x.options=-XX:+UseGetTimeOfDay

For instance:

#type of jvm (used only if attachjvm=true)
oscomponent.jvm=client

#
oscomponent.jvm.x.options=-XX:+UseGetTimeOfDayc