Skip to content

Support jdk.ObjectCount and jdk.ObjectCountAfterGC #7402

@roberttoyonaga

Description

@roberttoyonaga

Feature request

Please include the following information:

Is your feature request related to a problem? Please describe.
Not related to a problem.

Describe the solution you'd like.
Support for these events. They should provide count and memory size per object type after a GC has completed.

Describe who do you think will benefit the most.
GraalVM users that use JFR to debug memory leaks, and allocation related issues.

Describe alternatives you've considered.
Heap dumps are an alternative approach to inspecting objects on the heap. However, jdk.ObjectCount and jdk.ObjectCountAfterGC have the advantage of continuously providing a data points over time. It should also be quicker to emit these events than do a full heap dump.

Express whether you'd like to help contributing this feature
I'll help contribute this

When finished, #5410 should be updated

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions