title: Quarkus High RAM usage on empty project with just some entities
body: <p>I have been testing Quarkus, to check if it's worth the replacing cost, when running an empty Quarkus project with only <code>resteasy</code> and <code>jsonb</code> , the RAM usage is of just <strong>5MB</strong>. But after adding only some entities from a big project, the project has grown to <strong>100MB</strong>, which I find as an abusive usage, as in the Spring one, the full project is using <strong>180MB</strong>.</p>
  <p>Reproduction repository: <a href="https://github.com/KevinGuancheDarias/quarkus-owge-poo" rel="nofollow noreferrer">https://github.com/KevinGuancheDarias/quarkus-owge-poo</a></p>
  <p>running natively steps (requires <code>docker</code>)</p>
  <pre class="lang-sh prettyprint-override"><code>$ mvn package -Pnative -Dquarkus.native.container-build=true -DskipTests
  $ docker build --no-cache -f src/main/docker/Dockerfile.native -t quarkus/test .
  $ docker run -i --rm -p 8080:8080 quarkus/test
  </code></pre>
  <p>Command used to test the sizes</p>
  <pre class="lang-sh prettyprint-override"><code>docker stats 2985d8366e51 32db5040f6e7
  </code></pre>
  <p>Sample output where owge_all_dockerized.... is the full project running in Docker and suspicious_borg is the quarkus test
  <a href="https://i.stack.imgur.com/WtV1h.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WtV1h.png" alt="The stats" /></a></p>
  <p>Quarkus extensions: <code>agroal, cdi, hibernate-orm, hibernate-orm-panache, jdbc-mysql, mutiny, narayana-jta, resteasy, resteasy-jsonb, smallrye-context-propagation</code></p>
  <p>Is this the expected RAM usage?</p>
  <p>Update: Removing only <code>hibernate ORM</code>, but preserving <code>agroal</code> and <code>jdbc-mysql</code>, makes the memory go down to <strong>6MB</strong></p>
  <p>Update: Please note, that both the quarkus test and the full project running in Spring boot are immediately started, and stopped, no time for GC to fill up the memory</p>
  <p>Thanks in advance!.</p>