RecyclableMemoryStreamManager.Events.MemoryStreamOverCapacity method

December 6, 2023 · View on GitHub

Logged when a stream grows beyond the maximum capacity.

public void MemoryStreamOverCapacity(Guid guid, string? tag, long requestedCapacity, 
    long maxCapacity, string? allocationStack)
parameterdescription
guidUnique stream ID
requestedCapacityThe requested capacity.
maxCapacityMaximum capacity, as configured by RecyclableMemoryStreamManager.
tagA temporary ID for this stream, usually indicates current usage.
allocationStackCall stack for the capacity request.

Remarks

Note: Stacks will only be populated if RecyclableMemoryStreamManager.GenerateCallStacks is true.

See Also