Thursday, December 13, 2007

Running multiple instances of tomcat from single installation

To install the tomcat once and use it to launch multiple instances follow the steps:
  1. Create a folder e.g. Alpha in the TOMCAT_HOME.
  2. Copy the conf, logs, temp, webapps and work folders to the Alpha folder.
  3. Modify the conf\server.xml to change the port i.e. make them different from the ports of the main tomcat e.g. change its Connector port to 8081 and so on.
  4. Copy startup.bat from TOMCAT_HOME\bin and paste to TOMCAT_HOME\Alpha\.
  5. Modify the startup.bat by adding the highlighted part to the end of the file.
:doneSetArgs SET CATALINA_BASE=%CATALINA_HOME%\Alpha SET CATALINA_TMPDIR = %CATALINA_HOME%\Alpha\temp call "%EXECUTABLE%" start %CMD_LINE_ARGS% :end

No comments:

Post a Comment