VisualVM memory leak

Đang mở
#672 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
42/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java
Lĩnh vực
performance

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
Java
Star
3.3k
Fork
335
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của oracle/visualvm

Tất cả issue của oracle/visualvm

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.