Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serilog High Memory Usage - Memory Leak & Solution [BUG] #882

Open
Diyar opened this issue Jul 24, 2023 · 0 comments
Open

Serilog High Memory Usage - Memory Leak & Solution [BUG] #882

Diyar opened this issue Jul 24, 2023 · 0 comments

Comments

@Diyar
Copy link

Diyar commented Jul 24, 2023

Upon investigation, I observed that when I send a request to EF Core and encounter a failure or exceptions from the database, the process takes a longer time and consumes a significant amount of memory.

Interestingly, after removing Serilog from the project, the issue disappeared, and EF Core promptly sends the response without delays.

I tried this: I sent an create request with duplicate Id then the problem appeared.

you can see following screenshot:

image

Finally I found the problem which is caused by .Enrich.WithExceptionDetails()

image

@Diyar Diyar changed the title Serilog High Memory Usage - Memory Leak [BUG] Serilog High Memory Usage - Memory Leak & Solution [BUG] Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant