I have a problem with this method in the NLog library: NLog.Targets.Wrappers.AsyncTargetWrapper.ProcessPendingEvents(object state)
It consumes too much processor time. I have been running a Windows service using Nlog for a long time, and two days later my service consumes more than 80% of the processor time (one core almost 80%, the second 30%). This is not a 100% processor, but it is changing, and after 2 hours it is back to normal. So I run the profiler, and this method can call it: NLog.Targets.Wrappers.AsyncTargetWrapper.ProcessPendingEvents (object state)
I have 10 target files, all of them are configured as async. It is a fact that I have a lot of registration in my application, but only at the Trace level, if I switched to the Info level, it did not help.
Can you help me if I need to register in my application?
Simon
source share