-
Notifications
You must be signed in to change notification settings - Fork 61
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
IIS Application pool Crashed During APP Pool Recycle and apparently Gelf was the culprit #37
Comments
Hi I think it's very similar to this issue #18 And the exception was triggered because 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.
The text was updated successfully, but these errors were encountered: