-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
NLog causes memory leak #2369
Comments
Great research on finding similar issues, and I guess you have followed the advice presented in those issues:
And what are your results after following this advice? |
Also maybe consider removing |
Thank you for reply, I'll keep you informed. |
@karlovnv Have your memory issues been resolved? |
Closing this due to inactivity. Please let us know if this still an issue and please provide the requested info. |
We downgraded to 4.x and then the issue was resolved |
4.5? |
Now we use 4.4.12 and 5.0.0-beta11 for full framework and .net core projects correspondingly. It seems that memory leak is disappeared. Thank you for the instructions! |
@saboorahmed Please create new issue, instead of awaking old issues (Please also include steps to re-produce the problem. Maybe an issue with continous autoload of NLog LoggingConfiguration? Also there seems to a disconnect between you NLog.config and use of |
Bug
NLog version: 5.0.0-beta05
Platform: .NET Core, aspnet.core (hosted in IIS)
Current NLog config (xml or C#, if relevant)
In case of a BUG:
There are too much internal objects (such as Nlog.Common.LogEventInfoBuffer, Nlog.Layouts.*, Nlog.Internal.LoggingRule, AppDomainWrapper, and so on) in process dump, that leads to memory leak.
When async mode (async="true"), buffering and autoreload features are enabled process grows rapidly (up to 100 mb/min ).
We disabled async mode and buffering wrapper and as a result of the speed of growing was decreased.
Memory dump:
The size of all Nlog objects is about 300 MB:
It is empty, but in case of internal log level=warn log is full of messages like 'unused target fileinfo'
No exceptions
no
version for .net worked fine
I think that the issue is related to #1846, #2220, #316 and #1846
The text was updated successfully, but these errors were encountered: