The 3DOrchestrate Distribution Server is usually installed and run in the default TomEE CATALINA mode. However, using this mode on Windows is often not appropriate because it is fundamentally a console mode application running inside an opened user session. If the user session is closed or the Windows computers restarts for any reason, the TomEE application server and the 3DOrchestrate Distribution Server halts and do not restart automatically. Registering the 3DOrchestrate Distribution Server application as a Windows Service is a solution that lets the application run independently of any user session and restarts it automatically. See Configuring the 3DOrchestrate Distribution Server as a Windows Service for details. Configuring TomEE and the 3DOrchestrate Distribution Server as a Windows Service is a completely separate mechanism from the CATALINA mode (described in JVM Settings for 3DOrchestrate Distribution Server Configured by TomEE CATALINA Scripts), and does not use any of the same CATALINA scripts or environment variables. It is highly recommended that you use the 3DOrchestrate Distribution Server deployment utility to set up the 3DOrchestrate Distribution Server as a Windows Service because the deployment utility handles all the required configuration and starts the application immediately. If you prefer to run the deployment utility from the command line instead of using the GUI, the same Server Actions can be done from a command prompt run as an administrator and executed as follows: cd <server_install_dir> .\win_b64\reffiles\SMAExeServer\deploy\smaexe-deploy.bat -v .\config\deploy.param createtomeeservice .\win_b64\reffiles\SMAExeServer\deploy\smaexe-deploy.bat -v .\config\deploy.param removetomeeservice
Executing Remove TomEE Service stops the application if it is running and then unregisters it with the following transient batch script: Note:
The script is deleted
immediately after
execution.
<server_install_dir>\exe1\tomee\bin\removeservice.bat As opposed to the default CATALINA mode of the 3DOrchestrate Distribution Server, running the application as a Windows Services requires explicit settings for the minimum and maximum heap size (as highlighted in the createservice.bat script above). Consequently, the resulting performance settings are:
If this configuration is not appropriate for your target execution environment, you can change the default settings using the TomEE service console utility as explained in the createservice.bat script: ... REM *** INFO *** THE COMMAND BELOW CAN BE USED TO DISPLAY THE CONFIGURED SERVICE USING THE GUI REM *** INFO *** "%CATALINA_HOME%/bin/TomEE.exe" //ES//%SERVICE_NAME%_%SERVICE_VERSION% ... For example, entering the following command cd <TomEE> .\win_b64\code\tomee\bin\TomEE.exe //ES//<3DOrchestrateService_Name> displays the 3DOrchestrate service properties panel: ![]() This panel is similar to the default Windows Service properties panel, as it lets you start/stop the service and change the Startup type. There are additional tabs, however, that give you access to settings for the TomEE application server (when the 3DOrchestrate deployment utility configures the service). For example, the Logging tab lets you change various TomEE log file settings. The most important configuration settings are under the Java tab: ![]() The full set of Java Options are editable here—these include many settings specific to TomEE and the 3DOrchestrate Distribution Server application. These settings are: -javaagent:<3DOrchserver_install_dir>\win_b64\code\tomee\lib\openejb-javaagent.jar -Dcatalina.base=<3DOrchserver_install_dir>\exe1\tomee -Dcatalina.home=<3DOrchserver_install_dir>\win_b64\code\tomee -Djava.endorsed.dirs=<3DOrchserver_install_dir>\win_b64\code\tomee\endorsed -Djava.io.tmpdir=<3DOrchserver_install_dir>\exe1\tomee\temp -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=<3DOrchserver_install_dir>\exe1\tomee\conf\logging.properties -Djava.awt.headless=true -XX:+UseParallelGC -XX:MaxPermSize=256M -Dfile.encoding=UTF-8 -Dorg.apache.activemq.default.directory.prefix=<3DOrchserver_install_dir>\exe1\temp -Dfiper.system.configpath=<3DOrchserver_install_dir>\config -Dfiper.system.configfile=<3DOrchserver_install_dir>\config/SMAExeServer-exe1.properties -Dfiper.system.filemgr.rootFilePath=<3DOrchserver_install_dir>\exe1\filemgr -Dfiper.system.temp=<3DOrchserver_install_dir>\exe1\acstemp -Dfiper.system.installpath=<3DOrchserver_install_dir> In this list, the explicit setting The Java heap size options are displayed in separate fields near the bottom of the panel:
Note:
These values are in megabytes (MB), not gigabytes (GB), and
1536 MB = 1.5 GB 6144 MB = 6 GB | |||||||||||||