-
Notifications
You must be signed in to change notification settings - Fork 67
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
Calling in. net8 webapi failed to free memory #132
Comments
It's hard to know exactly what could cause it, but the GC process is a little different in .NET8 vs earlier versions, so maybe that's related. The WkHtmlToPdf package doesn't have specific builds for .NET8, so it's odd that it would be related. |
@han |
I run it in .NET8, but I don't have good test set up for memory leak testing. We welcome PRs though :) |
See this as well: #129 |
Also see this: #114 |
We used to generate pdf in .net5 in 2021, then we upgraded to .net6 in 2022 and upgraded to .net8 in 2024,But we found this caused failed to free memory in .net8. I don't know the problem caused by .net8 Or by the WkHtmlToPdf version.
The api called 10000 times maybe every day, the memory trend like this.
code in my project below:
Startup.cs
ValueController.cs
The text was updated successfully, but these errors were encountered: