title: Tomcat with multiple instances of the same application
body: <p>We're building a java web application where each customer will have an instance of it with it's own database schema. </p>
  
  <p>It will be managed by my company so I would like to know what is the best approach to have several apps instances running on the same Tomcat runtime since we tried to run 3 instances on a single Tomcat and it ended up on an Out of memory exception.
  We considered to run multiple tomcat instances in the same server but we haven't already tested it. Also we are considering to have a separate server for each customer.</p>
  
  <p>From your experience with similar scenarios, what is your opinion?</p>
  
  <p>EDITED: This application can't be multi-tenant since there will be code customizations in some parts of it as well as some other business facts that require an application instance per client. So please the application architecture is not the subject here. </p>
  
  <p>Thank you,</p>
  
  <p>Gyo</p>