Skip to content

Support for heap dumps triggered by the VM #199

Open
@erik-brangs

Description

@erik-brangs

Production JVMs like HotSpot or OpenJ9 provide the possibility to trigger heap dumps. Those dumps can then be analyzed with tools like the Eclipse Memory Analyzer.

The old Java implementation of MMTk didn't provide explicit support for heap dumps.

Will the new MMTk provide the ability to do heap dumps (possibly in the far future)? This would probably require traversing the whole heap and calling VM-specific code to handle each object. It might also be helpful to be able to free up as much memory as possible before the dump in order to reduce the size of the dump. Additionally, it is generally necessary to enumerate all the roots: heap dump parsers might do their own garbage collection pass and remove objects if a root is missing.

I looked at the documentation for the VM-to-MMTk interface and did not find any indications that this is currently supported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-heapArea: Heap (including Mmapper, VMMap)A-interfaceArea: Interface/APIC-featureCategory: FeatureF-projectCall For Participation: Student projects. These issues are available student projects.P-normalPriority: Normal.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions