Skip to content

when ProfilingIntegration is used memory and CPU usage increases significantly #3763

Open
@aalirezamoradii

Description

@aalirezamoradii

Package

Sentry.AspNetCore

.NET Flavor

.NET

.NET Version

8.0.0

OS

Linux

SDK Version

4.13.0

Self-Hosted Sentry Version

24.10.0

Steps to Reproduce

in the .Net 8.0 (Microsoft.NET.Sdk.Web) Program.cs

var builder = WebApplication.CreateBuilder(args);
        
builder.WebHost.UseSentry(o =>
{
    o.AddIntegration(new ProfilingIntegration(TimeSpan.FromMilliseconds(500)));
    o.AddEntityFramework();
});

var app = builder.Build();

// other middlewares

app.UseSentryTracing();

// other middlewares

app.Run();

Expected Result

Without using
o.AddIntegration(new ProfilingIntegration(TimeSpan.FromMilliseconds(500)));

Image

Actual Result

After using
o.AddIntegration(new ProfilingIntegration(TimeSpan.FromMilliseconds(500)));

When start:
Image

After 5 minutes:
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingProfiles

    Type

    Projects

    Status

    No status

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions