diff --git a/fe/fe-core/src/main/java/org/apache/doris/monitor/jvm/JvmService.java b/fe/fe-core/src/main/java/org/apache/doris/monitor/jvm/JvmService.java index 61d70be35c3ab4..fec9f4b555d0ef 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/monitor/jvm/JvmService.java +++ b/fe/fe-core/src/main/java/org/apache/doris/monitor/jvm/JvmService.java @@ -36,10 +36,10 @@ public class JvmService { private static final Logger LOG = LogManager.getLogger(JvmService.class); - private JvmStats jvmStats; - private final JvmInfo jvmInfo; + private JvmStats jvmStats; + public JvmService() { this.jvmInfo = JvmInfo.jvmInfo(); this.jvmStats = JvmStats.jvmStats();