The recommended way of setting environment information is by using a template which defines the needed information in
bin/setenv.properties
for example:
java.opt.1=-Xmx512M
java.opt.2=-Xss256K
Customer can manually edit the conf/wrapper.conf file or use a template which has the changes and use the ‘apply-template’ tcserver command to update the environment configuration of the instance. That has the advantage of being reproducible if customer wants to create a similar instance in the future.
Note:
setenv.bat
is invoked if using
tcserver run.
This invocation opens a new console window and runs the instance as an application instead of a service. This intended for development or testing as no Windows Service installation is required. Using
tcserver start
still calls the wrapper and the properties in
wrapper.conf
are used.