How to override time zone for ADS

How to override time zone for ADS

book

Article ID: KB0082861

calendar_today

Updated On:

Products Versions
TIBCO Data Virtualization ALL VERSIONS

Description

How to override time zone for ADS

Issue/Introduction

How to override time zone for ADS

Resolution

To override time zone for ADS :
1) Modify INSTALL_DIR/conf/script_env.bat/sh by adding all server 
VM_ARGS ( copy from INSTALL_DIR/bin/composite_server.bat/.sh ) and additional ones for time zone.
In the example below I am showing how to run the ADS in UTC/GMT . If you want a different timezone you can change this to the desired time zone :

On UNIX:
ADS_SERVER_VM_ARGS=-server -XX:NewRatio=6 -XX:-UseGCOverheadLimit -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=”$CONF_INSTALL_DIR/logs” -XX:PermSize=64m -XX:MaxPermSize=256m -XX:+ExplicitGCInvokesConcurrent -XX:+UseConcMarkSweepGC -Duser.timezone=UTC 
-Dcom.sun.management.jmxremote.ssl=false
export ADS_SERVER_VM_ARGS

On Windows:

Set ADS_SERVER_VM_ARGS=-server -XX:NewRatio=6 -XX:-UseGCOverheadLimit -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath="%CONF_INSTALL_DIR%\logs" -XX:PermSize=64m -XX:MaxPermSize=256m -XX:-ReduceInitialCardMarks -XX:+ExplicitGCInvokesConcurrent -XX:+UseConcMarkSweepGC -Duser.timezone=UTC

2) Restart ADS
In your INSTALL_DIR\logs\cs_server.out.* file you will see the following entries:
03/13/2013 9:35:11
Detected D:/Composite Software/ADS_6.2.2\conf\script_env.bat, calling it...
call D:/Composite Software/ADS_6.2.2\conf\script_env.bat exit code=0 
Done calling D:/Composite Software/ADS_6.2.2\conf\script_env.bat
Default VM_ARGS: -server -XX:NewRatio=6 -XX:-UseGCOverheadLimit -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath="D:/Composite Software/ADS_6.2.2\logs" -XX:PermSize=64m -XX:MaxPermSize=256m -XX:-ReduceInitialCardMarks -XX:+ExplicitGCInvokesConcurrent -XX:+UseConcMarkSweepGC
Detected ADS_SERVER_VM_ARGS environment variable overrides VM_ARGS
Changing VM_ARGS to: -server -XX:NewRatio=6 -XX:-UseGCOverheadLimit -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath="D:/Composite Software/ADS_6.2.2\logs" -XX:PermSize=64m -XX:MaxPermSize=256m -XX:-ReduceInitialCardMarks -XX:+ExplicitGCInvokesConcurrent -XX:+UseConcMarkSweepGC -Duser.timezone=UTC