title: Differences between jar and war when deploying spring applications
body: <p>I know that one can either deploy spring application as war in a container or run it as a standalone jar.</p>
  
  <p>What I failed to find out are the following:</p>
  
  <ul>
  <li><p>what consumes less memory: to run jar file using Tomcat embedded, to run jar file using Jetty embedded or to have it deployed as a war in Tomcat's container?</p></li>
  <li><p>what will have a better performance ?</p></li>
  <li><p>Any drawbacks not mentioned in Spring documentation when one picks a method or another that we should be aware?</p></li>
  </ul>
  
  <p>Regards.</p>