Skip to content

Allocation Rate / GC.GetTotalAllocatedBytes() stops updating #122299

@theolivenbaum

Description

@theolivenbaum

Description

When monitoring the "Allocation Rate" event counter, we often see the value showing zeros for a very long time in our logs:

Image

And it seems like it is due to the fact that GC.GetTotalAllocatedBytes() is returning a constant value (for example:
1198079260376 on a recent test). This is on a memory intensive application (container with >300GB RAM) with high memory allocation rate.

Any ideas if this is expected behaviour?

Reproduction Steps

N/A

Expected behavior

GC.GetTotalAllocatedBytes() updates with the latest value

Actual behavior

GC.GetTotalAllocatedBytes() stops updating

Regression?

As far as I know, this was not happening on .NET 9.0

Known Workarounds

No response

Configuration

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-GC-coreclruntriagedNew issue has not been triaged by the area owner

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions