I am trying to run multiple tomcat servers on Windows. I have downloaded and installed the tomcat7 zip (not using the installer) to three different folders, and updated the port information so they do not conflict. Everything seems to work fine if I run all three manually using the service.bat script that comes with tomcat.
When executing service.bat manually, I updated the java memory parameters by modifying service.bat as such:
However strange things happen when I run it as a Windows service. I installed the services with the following commands:
When running these servers I'll see that my web applications stop responding. I don't see any error messages, it's just very slow to respond, and usually doesn't respond at all. Very strange.
Are there any issues with using tomcat7 services like this? Am I doing something crazy with setting the Jvm params in the service install? Any suggestions for how to find the root cause?
Also, is there any chance that are any conflicts with %CATALINA_HOME%? If so, how can I resolve that?
Joined: Jul 30, 2005
Just to close the loop on my own thread; the problem was indeed how I configured the additional memory. Apparently --JvmMs, --JvmMx, and --JvmSs parameters to the tomcat7.exe windows service install program were not enough. I had to also specify the --JavaOptions parameters such that I could set the -Xmx and -Xms parameters explicitly.
(FYI: I am now using multiple tomcat instances in one single tomcat installation as opposed to several separate installations.)
I'm not exactly sure what the other tomcat7 Jvm parameters are used for. I'm still trying to figure that one out.
subject: Issues with multiple Tomcat 7 services on Windows