This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Multiple Tomcat instances Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "Multiple Tomcat instances" Watch "Multiple Tomcat instances" New topic
Author

Multiple Tomcat instances

raghu nagabandi
Ranch Hand

Joined: Aug 14, 2007
Posts: 35
How to create multiple instances for tomcat?

[ UD: added a meaningful subject line ]
[ August 28, 2007: Message edited by: Ulf Dittmer ]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35241
    
    7
There's nothing stopping you from running multiple Tomcat instances, provided they have separate installation directories, and use different ports. What would be the advantage of this setup over having a single instance serving multiple web applications? Or to use multiple hosts within a Tomcat instance?


Android appsImageJ pluginsJava web charts
Manon Baratt
Ranch Hand

Joined: Jan 30, 2006
Posts: 58
Is it possible to have one instance of Tomcat with multiple ports to serve web apps?
Manon Baratt
Ranch Hand

Joined: Jan 30, 2006
Posts: 58
Is it possible to have one instance of Tomcat with multiple ports to serve web apps?
Jesper de Jong
Java Cowboy
Bartender

Joined: Aug 16, 2005
Posts: 12911
    
    3

Manon, you should be able to configure multiple HTTP Connectors in your Tomcat server.xml file that listen on different ports. Refer to the Tomcat documentation for details on how to setup your server configuration to do this.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Manon Baratt
Ranch Hand

Joined: Jan 30, 2006
Posts: 58
Thanks. It worked.

Manon
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Multiple Tomcat instances
 
Similar Threads
Servlet instances
Multiple Tomcat Instances on the same box
Common Libraries for two tomcat instance
Configure Multiple Tomcat Instances
Setting multiple instances of Tomcat