<p>Currently I am setting up an application that can deploy other web apps to Tomcat 6 clusters.  It is set up right now to have a one to one relationship between deployed web application and a cluster.  My current reasoning for this is so that I can change the JVM args of the Tomcat server without disrupting other applications and so that the memory usage of the single application will not conflict with other applications.</p>

<p>The question is, what is considered best practice in terms of tomcat instance clusters?  Should you only have one application running per cluster or multiple applications like in a single tomcat instance environment? Or does this depend on the size of your application?</p>

<p>Thank you</p>

[{'answer_id': 30652, 'author': 'Joseph Bui', 'author_id': 3275, 'author_profile': 'https://Stackoverflow.com/users/3275', 'pm_score': 2, 'selected': False, 'text': "<p>Divide your services by resource requirements at the very least. For example, if you are running a photo album site, separate your image download server from your image upload server. The download server will have many more requests, and because most people have a lower upload speed the upload server will have longer lasting connections. Similarly, and image manipulation server would probably have few connections, but it should fork off threads to perform the CPU intensive image manipulation tasks asynchronously from the web user interface.</p>\n\n<p>If you have the hardware to do it, it's a lot easier to manage many separate tomcat instances with one application each than a few instances with many applications.</p>\n"}, {'answer_id': 40212, 'author': 'Robert J. Walker', 'author_id': 4287, 'author_profile': 'https://Stackoverflow.com/users/4287', 'pm_score': 2, 'selected': False, 'text': "<p>I've learned from experience that having only one app per Tomcat instance has a very significant advantage: when a Tomcat instance dies, <em>you don't have to dig through logs (or guess) which app is to blame</em>.</p>\n"}]
['https://Stackoverflow.com/questions/30295', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/-1/']