Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.