tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <>
Subject Re: Seeking tips on multi-host, multi-context deployments
Date Thu, 29 Sep 2011 13:07:22 GMT
On 28/09/2011 19:25, Sam Hokin wrote:
> (2) Dell 1950 8-CPU servers running Fedora 14 Linux 2.6.35, one with 2
> GB RAM and one with 4 GB RAM

That seems low but if it works for you...

> (2) Tomcat 7.0.16 instances, one on each server, running clustered
> contexts in "distributable" mode, under Sun JDK 1.6.0

Worth updating to 7.0.21 (or 7.0.22 which will hopefully be released in
a few days).

> P.S. One option I've considered is to run KVM and run each host in its
> own virtual OS.  To me that's a ridiculous amount of OS overhead to deal
> with occasional Tomcat outages, but it probably would be one solution,
> much more difficult to maintain than a single Tomcat instance per server
> running all the hosts and contexts.  If you've had experience running
> multiple Tomcat instances in separate virtual machines, I'd be curious
> to hear how it went.

I wouldn't go as far as a VM per host but you might want to consider
multiple Tomcat instances per server with, for example, a Tomcat
instance per host. Separate CATALINA_HOME (the binary) and CATALINA_BASE
(one per host) provides separate Java process for each host with minimal
overhead. Your memory requirements will increase but not by much. You
can split the apps between hosts any way you like.

The ASF uses this to run the main, test1 and test2 Jira instances from a
single Tomcat binary. Tomcat upgrades take me about 5 minutes from start
to finish with about 2 minutes downtime. The downtime is pretty much all
due to the time it takes Jira to stop and start.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message