VisualVM memory leak

未关闭
#672 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
42/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
java
领域
performance

调研方向

Start by reviewing the attached VisualVM log and the memory monitoring behavior while VisualVM monitors multiple long-running JVMs. Compare memory use over time with the reported expected range of 200–400 MB and the observed growth toward the 4 GB heap limit. Done means identifying and fixing the cause of the growth, then confirming memory remains near the expected range during a reproduction lasting multiple days.

由索引模型根据 Issue 内容生成。

描述

bug

Describe the bug
Hi, I have this situation, VisualVM is using all the memory I gave the it via JVM parameter.

To Reproduce
Steps to reproduce the behavior:

  1. Open VisualVM with -Xmx 4g.
  2. Run another two other JVMs, all long term, for multiple days, monitor all three VMs.
  3. Go back to the computer from time to time and check on VisualVM, nothing interesting is happening.
  4. Go back to the computer and check VisualVM - it uses all the memory.

Expected behavior
Normal memory usage, around 200-400 MB.

Actual behavior
VisualVM uses all the memory - in my case 4 GB.

VisualVM log
In attachement.
logfile.txt

Screenshots
Image

Desktop (please complete the following information):

  • OS: Windows Server 2022, x64, Windows Server 2022 Standard [Version 21H2 10.0.20348.5761] 64-bit
  • JDK version: openjdk version "26" 2026-03-17
    OpenJDK Runtime Environment (build 26+35-2893)
    OpenJDK 64-Bit Server VM (build 26+35-2893, mixed mode, sharing)
  • Version: 2.2.2
主要语言
Java
星标
3.3k
派生
335
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

oracle/visualvm 的其他 Issue

查看 oracle/visualvm 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。