ProfilerDiagnosticObserver memory grows indefinitely until System.OutOfMemoryException occurs #127
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Neither Profiling or RecyclableMemoryStream.cs has been touched for a number of releases. But it should only be used during development as it taps into and enables into a .NET's diagnostics event system and retains a rolling list of 10,000 events (overridable in ProfilingFeature.Capacity) that's used in the Admin Profiling UI. As such we only recommend using it during development, which you can enable with: host.Plugins.AddIfDebug(new ProfilingFeature {
//...
}); |
Beta Was this translation helpful? Give feedback.
-
It manages a pool on buffers so it would depend on how and how much it's being used. You can customize the pool configuration with: MemoryStreamFactory.RecyclableInstance = new(...); Or disable its usage with: MemoryStreamFactory.UseRecyclableMemoryStream = false; |
Beta Was this translation helpful? Give feedback.
Neither Profiling or RecyclableMemoryStream.cs has been touched for a number of releases. But it should only be used during development as it taps into and enables into a .NET's diagnostics event system and retains a rolling list of 10,000 events (overridable in ProfilingFeature.Capacity) that's used in the Admin Profiling UI.
As such we only recommend using it during development, which you can enable with: