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:
- Download and install Tomcat from the zip file not the Windows Installer.
- Edit <TomcatHome>\bin\service.bat:
- Set SERVICE_NAME (Service Name)
- Set PR_DISPLAYNAME (Service Display Name)
- Comment the line set PR_JVM (server)
- update PR_JVM (with the path to client jvm.dll)
- Update JVM Parameters --JvmMs 128 --JvmMx 256 (you can skip this and set it in catalina.bat file).
- Install Tomcat as service:
- cd <TomcatHome>\bin
- execute command: service install
- To change the JVM classpath java options memory settings etc. manually:
- execute: tomcat5w //ES//<SERVICE_NAME>
- To change the server port shutdown port and connector port edit <TomcatHome>\conf\server.xml:
- Change the shutdown port from 8005 to xxxx
for example <Server port="8005" shutdown="SHUTDOWN">
to <Server port="8105" shutdown="SHUTDOWN"> - Change the port from 8080 to xxxx
for example <Connector port="8080"...
to <Connector port="8180"... - 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" />
- Change the shutdown port from 8005 to xxxx
| Segment | Product | Component | Platform | Version | Edition |
|---|---|---|---|---|---|
| Commerce | Sterling Selling and Fulfillment Suite | MCS - 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":""}}]
Was this topic helpful?
Document Information
Modified date:
12 October 2021
UID
ibm10766775