You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[TraceEvent] Microsoft.Diagnostics.Tracing.Etlx.TraceCallStacks+CallStackInfo[] - High memory usage #1199
We've noticed that ever since update to the latest version of TraceEvent (from a much older one), we have been seeing much higher memory of TraceEvent. Mostly related to symbol resolution.
For instance from a dump (I can share internally),
0:000> !do 000001637fc31020
Name: Microsoft.Diagnostics.Tracing.Etlx.TraceCallStacks+CallStackInfo[]
MethodTable: 00007ffe66678120
EEClass: 00007ffe666780a0
Size: 177629656(0xa9669d8) bytes
Array: Rank 1, Number of elements 22203704, Type VALUETYPE (Print Array)
0:000> !do 00000163b25e1020
Name: Microsoft.Diagnostics.Tracing.Etlx.TraceCallStacks+CallStackInfo[]
MethodTable: 00007ffe66678120
EEClass: 00007ffe666780a0
Size: 134254640(0x8009030) bytes
Array: Rank 1, Number of elements 16781827, Type VALUETYPE (Print Array)
That's 22million and 16milion entries per array.
Any plans or ideas on how TraceEvent memory usage can be improved?
We rely on TraceEvent as part of a production profiling workflow (can provide my context internally if you would like).
changed the title [-]Microsoft.Diagnostics.Tracing.Etlx.TraceCallStacks+CallStackInfo[] - High memory usage[/-][+][TraceEvent] Microsoft.Diagnostics.Tracing.Etlx.TraceCallStacks+CallStackInfo[] - High memory usage[/+]on Jun 8, 2020
For anyone finding this thread later: we're seeing the same unbounded TraceCallStacks+CallStackInfo[] growth, but on the real-time/EventPipe path in a long-lived server process rather than during offline analysis, with production evidence (~0.6 GB/day to OOM, convicted by an A/B gcdump).
Since this one was closed in 2022 on reporter attrition rather than a resolution, I've opened it as a new issue rather than reviving a dormant thread: #2451. Happy to have it folded back in here if maintainers prefer.
Activity
[-]Microsoft.Diagnostics.Tracing.Etlx.TraceCallStacks+CallStackInfo[] - High memory usage[/-][+][TraceEvent] Microsoft.Diagnostics.Tracing.Etlx.TraceCallStacks+CallStackInfo[] - High memory usage[/+]brianrob commentedon Jun 12, 2020
Zeus (@suprak), do can you tell me which versions you're referring to here? I suspect this might be caused by #1136.
suprak commentedon Jun 12, 2020
Sorry, should have mentioned that in my original post,
<PackageReference Include="Microsoft.Diagnostics.Tracing.TraceEvent" Version="2.0.49" />brianrob commentedon Jun 12, 2020
No worries. Is 2.0.49 the new version that you're running or is that the old version?
suprak commentedon Jun 12, 2020
We upgraded from
2.0.2back in February.So
2.0.49is what we are using currently.brianrob commentedon Jun 13, 2022
Zeus (@suprak), is this still an issue or should we close this?
suprak commentedon Jun 14, 2022
I haven't seen any alerts with this recently, so go ahead and close.
therickfactr commentedon Aug 9, 2026
For anyone finding this thread later: we're seeing the same unbounded
TraceCallStacks+CallStackInfo[]growth, but on the real-time/EventPipe path in a long-lived server process rather than during offline analysis, with production evidence (~0.6 GB/day to OOM, convicted by an A/B gcdump).Since this one was closed in 2022 on reporter attrition rather than a resolution, I've opened it as a new issue rather than reviving a dormant thread: #2451. Happy to have it folded back in here if maintainers prefer.