Search code examples
testingtomcatinstanceproduction-environment

Tomcat test and production environment


What is the best design to have many enviroments for one web-app? Is it better to have multiple tomcat instances or multiple web-app instances deployed on one Tomcat server?


Solution

  • If one server can handle the load, I would said it's better to have just one Tomcat instance and deploy web-app multiple times if necessary.

    This way:

    1. You'll have only one server to take care of (secure, administer, backup).
    2. You share hardware resources among applications (RAM, DISK, CPU)