Showing posts with label errors. Show all posts
Showing posts with label errors. Show all posts

Monday, March 26, 2012

Server Too Busy Error

From time to time I am receiving server too busy errors

<httpRuntime
maxRequestLength="1536"
executionTimeout="60"
appRequestQueueLimit="700"
/
These are my settings in my web.config. Is there anyway to monitor the apprequestqueue live? It seems a little odd that its going over 700. I server about 1.3 million pages per day so it is possible. I thought it would be interesting to keep a closer eye on it.

Is there any downside to upping to to say 1500 for safety?

Thanks
mike123I'd suggest setting up Performance Monitor to log the Queue numbers over a period of time. See if the traffic is hitting the limit based on normal traffic, or if perhaps some event (or specific page) is causing a large jump in queued pages -- which would indicate a problem that needs to be trouble-shooted with the code.

Thursday, March 22, 2012

Server.GetLastError() in a Web Farm

If I am handling errors in my Global.Asax Application_Error method and this
resides on a web farm and I am trying to trap the last exception that was
thrown, I assume that Server.GetLastError() will only check for the last
error on the current server. What if I was redirected via load balancing to
a different server. How do I accomidate for this?If an exception occured, how would you get redirected to a different server?

Exception Occurs
local error handling
page error handling
global error handling

there's no redirection happening...it all happens in a single thread...

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/

"Daniel Williams" <Daniel Williams@.discussions.microsoft.com> wrote in
message news:79CDFA4C-0E4E-41D1-8F1E-AF3CF66DF570@.microsoft.com...
> If I am handling errors in my Global.Asax Application_Error method and
this
> resides on a web farm and I am trying to trap the last exception that was
> thrown, I assume that Server.GetLastError() will only check for the last
> error on the current server. What if I was redirected via load balancing
to
> a different server. How do I accomidate for this?

Server.GetLastError() in a Web Farm

If I am handling errors in my Global.Asax Application_Error method and this
resides on a web farm and I am trying to trap the last exception that was
thrown, I assume that Server.GetLastError() will only check for the last
error on the current server. What if I was redirected via load balancing to
a different server. How do I accomidate for this?If an exception occured, how would you get redirected to a different server?
Exception Occurs
local error handling
page error handling
global error handling
there's no redirection happening...it all happens in a single thread...
Karl
MY ASP.Net tutorials
http://www.openmymind.net/
"Daniel Williams" <Daniel Williams@.discussions.microsoft.com> wrote in
message news:79CDFA4C-0E4E-41D1-8F1E-AF3CF66DF570@.microsoft.com...
> If I am handling errors in my Global.Asax Application_Error method and
this
> resides on a web farm and I am trying to trap the last exception that was
> thrown, I assume that Server.GetLastError() will only check for the last
> error on the current server. What if I was redirected via load balancing
to
> a different server. How do I accomidate for this?