title: Spring boot WAR size with different embedded servers
body: <p>I am doing som experimentation with spring-boot and i realized that when i use embedded Tomcat server the resulting WAR size is smaller than when i use Jetty or even Undertow servers with same rest dependencies.</p>
  
  <p>How is this possible? ... it is supposed that Undertow and Jetty should be ultralight compared with tomcat.</p>
  
  <p>Sizes are:</p>
  
  <p>Tomcat ~18Mb</p>
  
  <p>Undertow ~21Mb</p>
  
  <p>Jetty ~24Mb</p>
  
  <p>Any of them looks too big for me since this is dummy REST endpoint.
  These are my dependencies:</p>
  
  <pre><code>    &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
              &lt;exclusions&gt;
                  &lt;exclusion&gt;
                      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                      &lt;artifactId&gt;spring-boot-starter-tomcat&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
              &lt;/exclusions&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-jersey&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-actuator&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;!-- &lt;dependency&gt; --&gt;
          &lt;!-- &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt; --&gt;
          &lt;!-- &lt;artifactId&gt;spring-boot-starter-tomcat&lt;/artifactId&gt; --&gt;
          &lt;!-- &lt;/dependency&gt; --&gt;
          &lt;!-- &lt;dependency&gt; --&gt;
          &lt;!-- &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt; --&gt;
          &lt;!-- &lt;artifactId&gt;spring-boot-starter-undertow&lt;/artifactId&gt; --&gt;
          &lt;!-- &lt;/dependency&gt; --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-jetty&lt;/artifactId&gt;
          &lt;/dependency&gt;
  &lt;!--        &lt;dependency&gt; --&gt;
  &lt;!--            &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt; --&gt;
  &lt;!--            &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt; --&gt;
  &lt;!--            &lt;scope&gt;test&lt;/scope&gt; --&gt;
  &lt;!--        &lt;/dependency&gt; --&gt;
      &lt;/dependencies&gt;
  </code></pre>