How to register Envinsa Services as Windows Services

Product Feature: General

Here are steps on how to configure Envinsa services, which by default are installed into Tomcat, as a Windows Services:
  1. Open a Windows Command Prompt
  2. Change to the bin directory of the Envinsa Service desired to start as a Windows Service such as Presentation Service. For example, <Envinsa Installation Directory>\WebServer\Tomcat-Presentation\bin
  3. Once in the correct directory, type "service.bat install Presentation"
    This will install Tomcat as a Windows Service, which will be named "Apache Tomcat Presentation".
  1. In the Windows Control Panel, open Administrative Tools > Services. "Apache Tomcat Presentation" will be listed as a service
  2. Double-click the service and ensure the Startup type is set to Automatic
  3. Click the Start button, and then OK
  4. Repeat the steps for each Envinsa Service desired to start as a Windows Service.
By running the Envinsa Services as Windows Service, you lose the ability to set the heap size in the catalina.bat file. As a result, to modify the heap size, you must edit the entry for the service in the system registry. TAKE CAUTION WHEN MODIFYING SYSTEM REGISTRY ENTRIES. DO NOT CHANGE ANYTHING OTHER THAN THE HEAP SIZE. ADDITIONAL CHANGES COULD ADVERSELY AFFECT THE SYSTEM.

Here are steps to modify heap size in system registry:
  1. Go to Start > Run and type "regedit"
  2. In the Registry Editor, navigate to the entry for the Tomcat service that was created. The heap size can be set in the Java parameter for the service:
    HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun 2.0\<Service_Name>\Parameters\Java
  3. JvmMs and JvmMx contain the values for the minimum and maximum heap size for the service, respectively. Double-click the parameters to modify the values
  4. Enter the appropriate values for the minimum and maximum heap size
  • The recommended default minimum and maximum heap sizes are as follows. These settings should be sufficient for most users, but can be increased when necessary:
    • Presentation 256MB (min), 1024MB(max)
    • Routing 256MB (min), 1024MB(max)
    • Location Utility 256MB (min), 1024MB(max)
    • Other Services 256MB (min), 1024MB(max)
  1. Close the Registry Editor to save the changes
UPDATED:  March 31, 2017