1

We've only recently started using Tomcat (6.x) as our Java servlet container for various production web applications. We're not using particularly advanced functionality, and generally Tomcat config for each app is extremely simple. It seems to me that installing multiple Tomcat instances (which I understand is extra easy to do as a Windows service with Tomcat 7) would not much increase maintenance effort, while allowing each of our apps to be completely isolated from the others, and e.g. not be affected by a service restart following a server config change designed to help only one of the apps. High performance is not crucial in the case.

Is it as simple as that, or are there good reasons why one might want to share instances between several apps? Bonus question: is there an obvious way I'm missing to re-read server config without bouncing the Tomcat service?

1 Answer 1

0

If it can handle it performance-wise, I'd say use one instance - memory will probably be the main concern.

The trade-off is extra management time and effort, pointing clients or proxies to extra listening ports, etc., against the potential performance issues with everything running on one jvm - eating the same memory heap, sharing the same garbage collector, and, if it happens, all crashing at once.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .