This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes 2 questions on multiple tomcat instances Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "2 questions on multiple tomcat instances" Watch "2 questions on multiple tomcat instances" New topic
Author

2 questions on multiple tomcat instances

O. Ziggy
Ranch Hand

Joined: Oct 02, 2005
Posts: 430

Hi all,

I need to set up tomcat to have multiple instances. I have read quite a few articles about it so i think i know how to set it up. There are a few things that i am still not clear how i would resolve.

1. If i have a tomcat with multiple instances, how does the shutdown work. If i shutdown one of the instances, would i still be able to use one of the other instances or is the shutdown are global shutdown?

2. How will i be able to install the Admin and Manager applications? As these are installed on the main installation, would i be able to set up the admin and manager applications so that they only manage a specific tomcat instance?

Thanks
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Crosspoted: http://forums.sun.com/thread.jspa?messageID=10669420
Please read this: http://faq.javaranch.com/java/BeForthrightWhenCrossPostingToOtherSites
Kees Jan Koster
JavaMonitor Support
Rancher

Joined: Mar 31, 2009
Posts: 251
    
    5
Dear O. Ziggy,

Stopping is per-tomcat instance. It is probably best if you write some custom start- and stopscripts for use in /etc/rc.d (or whereever your distro stores start-on-boot scripts).

As for the manager app, you'd better remove it. It is a vector for viruses and it does nothing that you cannot do better from the command line.


Java-monitor, JVM monitoring made easy <- right here on Java Ranch
O. Ziggy
Ranch Hand

Joined: Oct 02, 2005
Posts: 430

Kees Jan Koster wrote:Dear O. Ziggy,

Stopping is per-tomcat instance. It is probably best if you write some custom start- and stopscripts for use in /etc/rc.d (or whereever your distro stores start-on-boot scripts).

As for the manager app, you'd better remove it. It is a vector for viruses and it does nothing that you cannot do better from the command line.



Thanks for your response. I will be looking into producing the init.d scripts for starting/stopping the instances.

With regards to the manager/admin apps, we dont use these on the live environment. We only use them on Development and Integration environment. We are also on a private network behind a firewall. As i am only using them for development, i dont think they are accessible outside of our network. Can they be used for multiple instances of Tomcat?

Thanks
Kees Jan Koster
JavaMonitor Support
Rancher

Joined: Mar 31, 2009
Posts: 251
    
    5
Dear O. Ziggy,

I never use these apps for anything, so I do not know. Sorry.
O. Ziggy
Ranch Hand

Joined: Oct 02, 2005
Posts: 430

Kees Jan Koster wrote:Dear O. Ziggy,

I never use these apps for anything, so I do not know. Sorry.


Ok no worries mate. Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: 2 questions on multiple tomcat instances
 
Similar Threads
Tomcat Shutdown Issue
Mutiple Instances of a server
Tomcat Cluster / Load Balancing
regd jvms and nodes...
multiple tomcat engines and apache