Spring Boot heap usage in inactive state

前端 未结 2 1832
被撕碎了的回忆
被撕碎了的回忆 2021-01-27 13:03

I have deployed a very simple spring boot application locally. It has only one class - controller. That\'s pretty much it. What I\'ve noticed is that heap allocation is not stab

相关标签:
2条回答
  • 2021-01-27 13:22

    Even tho no requests are being made the server application still does some kind of background stuff - then Garbage Collection happens. Here's a great article that explains it in-depth.

    https://spring.io/blog/2015/12/10/spring-boot-memory-performance

    0 讨论(0)
  • 2021-01-27 13:23

    The fact that you are monitoring the application with VisualVM already leads to allocations in Java Heap.

    VisualVM talks to JVM through JMX; you are basically observing the effect of this communication.

    0 讨论(0)
提交回复
热议问题