Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Sub-optimal memory leak capabilities with Pyroscope Java agent

Đang mở
#94 0 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
28/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
java
Lĩnh vực
observability

Hướng nghiên cứu

Bắt đầu với cấu hình leaktest được cung cấp và so sánh đầu ra ALLOC/allocLive của Pyroscope Java agent với các kết quả --live của Async Profiler trong 10 và 60 giây. Hoàn thành nghĩa là xác định lý do leak khó thấy hơn hoặc ghi lại giới hạn và xác định hành vi liên quan của agent cần thay đổi; không có tệp hay test nào trong repository được nêu tên.

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

Mô tả

Hi,

I’m trying to use Grafana Pyroscope to find a simulated memory leak in a small example program. I have two methods called leak() and noLeak() where the leak() method saves data to a Set every time it is called and noLeak() only allocates some memory that will be garbage collected. When I use Async Profiler (2.9) locally with the –live option I see that the leak() method is “leaking” memory. When I try to use the Pyroscope agent instead (io.pyroscope:agent:0.11.3) I don’t see it nearly as clearly.
async-large
pyroscope-large
pyro-zoom
async-zoom

I used the following configuration when setting up the Pyroscope Java agent:

Config config = new Config.Builder()
                .setApplicationName("leaktest-1")
                .setFormat(Format.JFR)
                .setServerAddress("http://localhost:4040/")
                .setUploadInterval(Duration.ofSeconds(10))
                .setProfilingEvent(EventType.ALLOC)
                .setAllocLive(true)
                .build();

When I run the async profiler, locally, for 60s or more then I can easily see the memory leak. When I run the async profiler for 10s or less than I observe the same behavior as I see with Pyroscope.
async-10

I also tried to change the upload interval of the Pyroscope Java agent to 60s, but I am still not able to see the memory leak in a good way.

Slack thread: https://grafana.slack.com/archives/C049PLMV8TB/p1683294542388929

Ngôn ngữ chính
Java
Star
125
Fork
48
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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 grafana/pyroscope-java

Tất cả issue của grafana/pyroscope-java

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.