IBM Support

Setup Tomcat as a Windows Service with more than one instance *|* -50838B79EF5937C185257917007AD6D7- *|*

Question & Answer


Question

Setup Tomcat as a Windows Service with more than one instance *|* -50838B79EF5937C185257917007AD6D7- *|*

Answer

Technote (troubleshooting)


Problem(Abstract)

This describes how to set up Tomcat as a Windows Service if using more than one Tomcat instance of the same version.

Resolving the problem

Create two identical Tomcat instances in a clustered environment. This example is done with Tomcat 5.5 so it should work with 5.x versions but may not work for 4.x.

Steps to be followed for each instance:

  1. Download and install Tomcat from the zip file not the Windows Installer.
  2. Edit <TomcatHome>\bin\service.bat:
    1. Set SERVICE_NAME (Service Name)
    2. Set PR_DISPLAYNAME (Service Display Name)
    3. Comment the line set PR_JVM (server)
    4. update PR_JVM (with the path to client jvm.dll)
    5. Update JVM Parameters --JvmMs 128 --JvmMx 256 (you can skip this and set it in catalina.bat file).
  3. Install Tomcat as service:
    1. cd <TomcatHome>\bin
    2. execute command: service install
  4. To change the JVM classpath java options memory settings etc. manually:
    1. execute: tomcat5w //ES//<SERVICE_NAME>
  5. To change the server port shutdown port and connector port edit <TomcatHome>\conf\server.xml:
    1. Change the shutdown port from 8005 to xxxx
      for example <Server port="8005" shutdown="SHUTDOWN">
      to <Server port="8105" shutdown="SHUTDOWN">
    2. Change the port from 8080 to xxxx
      for example <Connector port="8080"...
      to <Connector port="8180"...
    3. Change AJP connector port from 8009 to xxxx
      for example <Connector port="8009" enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />
      to <Connector port="8109" enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />

Cross reference information
SegmentProductComponentPlatformVersionEdition
CommerceSterling Selling and Fulfillment SuiteMCS - Platform

Historical Number

NFX3106

Product Alias/Synonym

Severity


Normal

[{"Business Unit":{"code":"BU055","label":"Cognitive Applications"},"Product":{"code":"SS73G6","label":"Sterling Total Payments for Financial Services"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
12 October 2021

UID

ibm10766775