Open fm-gawdeprasad opened 8 years ago
Hi I think it's very similar to this issue https://github.com/jjchiw/gelf4net/issues/18
And the exception was triggered because log4net.Config.XmlConfigurator.Configure();
was called every time as explained in this comment https://github.com/jjchiw/gelf4net/issues/18#issuecomment-97927767
I'll try to reproduce the exception Recycling the App pool and will let you know if I could reproduce it
Did you confirm that was the issue?
Hi!
No I couldn't reproduce it or confirmed it, do you have the same issue?
Yes I have an WCF service which seems to crash like this when app pool recycles and we are logging a high frequency.
I can't reproduce it, I created a simple nancy application hosted in iis, and I had various thread pointing to the endpoint and logging the time via http and udp, and in the iis console I go to the application pool and recycle it, and all the messages kept going to graylog and didn't experience any crash....
So I also had WCF tracing turned on at the time. Maybe this is a contributor. I will also attempt to reproduce in a simpler example than our production system. Thanks for your attempts.
We use Graylog to log all the Database calls in our application. We had the IIS App Pool recycle scheduled at 3AM in the morning. During the Recycle, the IIS failed to start with following logs in System Event log
The number of message being sent to Graylog was pretty high as it sent 20lac messages in the span of 17 hours (which is too much). When I looked at
GelfUdpAppender
, I think what might have happened is the client object was recycled before theEndSend()
is called. But I am not sure about it.Following is how we are creating logger. We created the static instance of the logger
And I am logging the error as below
Do let me know if my assumption is correct. With this effort we have memached most of the DB calls, but my worry is that, if I enable graylog again, it should not crash the app pool on live site during recycle.