VisualVM memory leak
还没有人认领这个 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 内容生成。
描述
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:
- Open VisualVM with -Xmx 4g.
- Run another two other JVMs, all long term, for multiple days, monitor all three VMs.
- Go back to the computer from time to time and check on VisualVM, nothing interesting is happening.
- 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
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 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
oracle/visualvm 的其他 Issue
-
bug
难度 3/5 1-2 天 新手友好度 55/100
-
enhancement
难度 5/5 一周以上 新手友好度 15/100
-
bug
难度 3/5 1-2 天 新手友好度 45/100
-
enhancement
难度 4/5 3-5 天 新手友好度 35/100
-
enhancement
难度 5/5 一周以上 新手友好度 25/100
相似的 Issue
-
bug main ui
难度 2/5 1-3 小时 新手友好度 78/100
openhab/openhab-webui#4671 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 64/100
NearVanilla/IceCream#109 ·
维护者通常 1 天内回复
-
getRawTextContent() returns the lines of every page in reverse order (bottom to top) since 4.0.3未关闭
难度 1/5 1-3 小时 新手友好度 90/100
-
难度 2/5 1-3 小时 新手友好度 82/100
bancolombia/bin-stash#79 ·
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复