Administration Guide > Basic TDV Administration Tasks > Starting TDV Processes on Windows > Customizing the TDV Server Startup Scripts on Windows
 
Customizing the TDV Server Startup Scripts on Windows
The TDV installation provides a startup script for Windows that you can customize for your own purposes; but to maintain customizations you might have made to this script across hotfix or patch updates, you must activate an environment variable.
Note: You can also use this functionality to add JRE VM arguments or run commands automatically before launching TDV.
The procedure below describes how to configure the startup script for Windows.
To configure the TDV startup scripts for Windows
1. Stop the TDV Server.
2. In Windows Explorer, navigate to <TDV_install_dir>\conf.
3. Copy script_env.bat.sample to script_env.bat.
4. Open script_env.bat with a text editor and uncomment (remove “rem” from) the line that contains:
rem set CIS_SERVER_VM_ARGS
 
5. Change the value of CIS_SERVER_VM_ARGS to include all the values in VM_ARGS from <TDV_install_dir>\bin\composite_server.bat.
a. Retrieve your platform specific value of VM_ARGS from <TDV_install_dir>\bin\composite_server.bat. Find the first “set VM_ARGS” line in that script and use the values from that line.
b. If you want to run an executable or command-line utility at this point, make sure the command returns control to composite_server.bat. If it does not, TDV does not start correctly.
c. Each command you add should be on a new line.
6. Start the TDV Server.
7. Review the newest <TDV_install_dir>\logs\cs_server.out.<timestamp> file to make sure the script environment is functioning properly.
Examples
CIS_SERVER_VM_ARGS without quotes and no spaces before or after the equal sign (=):
set CIS_SERVER_VM_ARGS=-server -XX:NewRatio=6 -XX:-UseGCOverheadLimit -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=C:/TDV702/logs -XX:PermSize=64m -XX:MaxPermSize=256m -XX:-ReduceInitialCardMarks -XX:+ExplicitGCInvokesConcurrent -XX:+UseConcMarkSweepGC -Duser.timezone=GMT
 
CIS_SERVER_VM_ARGS with a space before and after the equal sign (=) when double quotes are used around the value:
set CIS_SERVER_VM_ARGS ="-server -XX:NewRatio=6 -XX:-UseGCOverheadLimit -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=C:/TDV702/logs -XX:PermSize=64m -XX:MaxPermSize=256m -XX:-ReduceInitialCardMarks -XX:+ExplicitGCInvokesConcurrent -XX:+UseConcMarkSweepGC -Duser.timezone=GMT"