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

Very slow logging and large memory footprint #55

Open
CallumECameron opened this issue Oct 18, 2023 · 0 comments
Open

Very slow logging and large memory footprint #55

CallumECameron opened this issue Oct 18, 2023 · 0 comments

Comments

@CallumECameron
Copy link

  • Create a .NET 6 web app using ASP.Net Core
  • Add end point
  • Add logging using the eventhub-logging-provider
  • Set log level to info
  • Call into the endpoint

Microsoft logs "executing endpoint" which has a state object that is serialised by eventhub-logging-provider. This is a large object that, when serialised, is ~1GB in size. This takes many seconds to log and caused a memory footprint of >6GB in the application.

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