Spring Boot堆在非活动状态下的使用 [英] Spring Boot heap usage in inactive state
问题描述
我已经在本地部署了一个非常简单的spring boot应用程序.它只有一个类-控制器.就是这样. 我注意到的是堆分配不稳定,并且有峰值和突然下降.为什么会这样呢.我还没有打过该应用程序.
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 stable and is having peaks and sudden drops. Why is that happening. I have not done a single call to the app.
VisualVM中的视图:
A view from VisualVM:
推荐答案
使用VisualVM监视应用程序这一事实已经导致Java Heap中的分配.
The fact that you are monitoring the application with VisualVM already leads to allocations in Java Heap.
VisualVM通过JMX与JVM对话;您基本上正在观察这种交流的效果.
VisualVM talks to JVM through JMX; you are basically observing the effect of this communication.
这篇关于Spring Boot堆在非活动状态下的使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!