How to add new JVM arguments to TIBCO Data Virtualization server hosted on Linux?

How to add new JVM arguments to TIBCO Data Virtualization server hosted on Linux?

book

Article ID: KB0071810

calendar_today

Updated On:

Products Versions
TIBCO Data Virtualization All supported versions

Description

This article lists the steps to follow to add any new JVM arguments to the TIBCO Data Virtualization server hosted on Linux.

Issue/Introduction

How to add new JVM arguments to TIBCO Data Virtualization server hosted on Linux?

Environment

Linux

Resolution

Assume the requirement is to add the Java option "-Duser.timezone=America/New_York" to the TDV server's existing list of JVM arguments to change the TDV server's timezone explicitly to EST. 

For the TDV server on Linux, we can add any new JVM argument to the script_env.sh file. Below are steps to activate the script_env.sh file and add the Java option to it: 
===============
(1)  Stop the TDV Server.
(2)  Navigate to [TDV_Server_dir]/conf directory where the script_env.sh.sample file is present.
(3)  Make a copy of the script_env.sh.sample file in the same directory and name it "script_env.sh".
(4)  Open script_env.sh with a text editor, and uncomment the last two lines (i.e. remove the '#' prefix):

---------------------------
 CIS_SERVER_VM_ARGS=
 export CIS_SERVER_VM_ARGS
---------------------------
(5)  Change the value of CIS_SERVER_VM_ARGS to include all the existing values in VM_ARGS from <TDV_install_dir>/conf/server/server.properties.
For Linux, this would be the "linux.vmargs=" line
Example:
--------------------------------------------------------------------
CIS_SERVER_VM_ARGS="-Ddrill.java.home=/TIBCO/TDV_Server_84/jdk -server -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/TIBCO/TDV_Server_84/logs -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -Xmx2048m -Djava.library.path=/TIBCO/TDV_Server_84/apps/server/lib/svn/lin64"

export CIS_SERVER_VM_ARGS
--------------------------------------------------------------------
NOTE: Make sure to add double quotes around the value specified for CIS_SERVER_VM_ARGS.

(6)   Append the following to the CIS_SERVER_VM_ARGS line:
-Duser.timezone=America/New_York
Example:
--------------------------------------------------------------------
CIS_SERVER_VM_ARGS="-Ddrill.java.home=/TIBCO/TDV_Server_84/jdk -server -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/TIBCO/TDV_Server_84/logs -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -Xmx2048m -Djava.library.path=/TIBCO/TDV_Server_84/apps/server/lib/svn/lin64 -Duser.timezone=America/New_York"

export CIS_SERVER_VM_ARGS
--------------------------------------------------------------------
Note: All the flags in the CIS_SERVER_VM_ARGS should be in a single line in the script_env.sh file.

(7)  Start the TDV Server.
(8)  Check that the flags are in effect by running:
                  ps -elf | grep ServerBoot
 
And then verify that the flags are displayed in the output.
===============