aspose file tools*
The moose likes Tomcat and the fly likes Issues with multiple Tomcat 7 services on Windows Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Issues with multiple Tomcat 7 services on Windows" Watch "Issues with multiple Tomcat 7 services on Windows" New topic
Author

Issues with multiple Tomcat 7 services on Windows

Ra Carter
Ranch Hand

Joined: Jul 30, 2005
Posts: 96
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?
Ra Carter
Ranch Hand

Joined: Jul 30, 2005
Posts: 96
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.

For example:

(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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Issues with multiple Tomcat 7 services on Windows
 
Similar Threads
How to update JVM option in tomcat5.
Heap Memory usage
Unable to start manual configured tomcat service
Tomcat5- how can I get the Initial Memory pool numers set on command line to show up in GUI tool?
increase java heap size