Visitar URL original
Monitor total allocated bytes on the Java heap by the JVM · Issue #505 · oracle/visualvm · GitHub
Skip to content

Monitor total allocated bytes on the Java heap by the JVM #505

Description

@thurka

JDK 21 added new com.sun.management.ThreadMXBean method getAllThreadAllocatedBytes() that, if both isAllocatedThreadMemorySupported() and isThreadAllocatedMemoryEnabled() are true, returns an approximation of the total number of bytes allocated in the Java heap by the JVM process. It would be useful to use this new JXM API to monitor allocated bytes by whole JVM.

Corresponding JDK issue: JDK-8304074.

Activity

  1. self-assigned this
    on Jun 3, 2023
  2. added a commit that references this issue on Apr 24, 2026
  3. thurka commented on Apr 24, 2026

    @thurka
    MemberAuthor

    Done in master.

  4. added theissue type on Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions