M
M
mitaichik2019-11-29 15:06:22
Spring
mitaichik, 2019-11-29 15:06:22

Why does Spring Boot eat so much memory?

There is an application, quite small, using pure Spring and its extensions + JPA + Mongo + Integration-IP + Jetty embedded. In production, it eats 300 megs, here is its idle work schedule:
5de109963a4fb230090447.png
Remade it to Spring Boot - replaced dependencies with bootstrap, sawed out jetty (since there is a tomcat in the boot). In an idle start, it started many times more. Here is the chart
5de109a8d9318545999312.png
. Is this normal?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2019-11-29
@mitaichik

Yes, good. Boot is a set of crutches, they reduce the amount of work for the programmer by increasing the amount of work performed by the framework, respectively, and memory consumption will be higher and performance will be lower.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question