all groups > dotnet web services > march 2006 >
You're in the

dotnet web services

group:

ThreadAbort Exceptions !! HELP !!


ThreadAbort Exceptions !! HELP !! Tim Greenwood
3/30/2006 4:38:51 PM
dotnet web services:
I've seen many blogs address this issue and always end up associating it
with the infamous Response.Redirect without the second parameter. Our web
team assures me they've exhaustively gone thru the entire website and taken
care of this issue on their end.

We still get a handful of these during our busiest times. The stack trace
seems to usually point at a webservice not an aspx page.
For instance...

System.Threading.ThreadAbortException: Thread was being aborted. at
System.Threading.WaitHandle.WaitOneNative(IntPtr waitHandle, UInt32
millisecondsTimeout, Boolean exitContext) at
System.Threading.WaitHandle.WaitOne(Int32 millisecondsTimeout, Boolean
exitContext) at System.Net.HttpWebRequest.GetRequestStream() at
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters) at
WWDBV2.wsOrders.Orders.GetDetailsByOrderID(Int32 lngIBO, String strSession,
Int32 lngOrderID, Boolean blnGetDetails, Boolean blnIncludeDeleted,
ViewModes vm) at WWDBV2.eApp.Details.Page_Load(Object sender, EventArgs e)


where WWDBV2.wsOrders is a webservice on a different server inside the
firewall. Since our webservices are obviously not redirecting anything then
that is not the issue. During busy times we might have a 5-600 users
consistently using our ordering system. With a 4-cluster web front-end and
a 2-cluster webservice middle-tier I'd think we should not have any
performance issues.

Our SQL Server is a single dual-proc machine (soon to be clustered with
another 4-proc box). Our current box rarely goes over 75% CPU and all other
stats are fine. The only thing I haven't personally monitered is the
network stats. The web cluster is wired to the middle tier on a 100MB
connection. The middle tier is connected to the SQL box by a dedicated 1 GB
connection so I really cannot imagine bandwidth as a problem here.

I'm pulling my hair out here and I already don't have enough of that!!
Does anyone have a clue what I could be missing here?

The manager in the web department is freaking out on us and insisting that
the "data guys" have screwed something up.

Thank you for any help ... anything at all.

Re: ThreadAbort Exceptions !! HELP !! Tim Greenwood
3/31/2006 8:08:17 AM
Yes that has been completely verified but again the stack traces point to
the aborts occurring during a call to a webservice. In fact every single
thread abort we are getting is like that.


[quoted text, click to view]

Re: ThreadAbort Exceptions !! HELP !! Stuart Irving
3/31/2006 1:33:18 PM
Using Response.Redirect or Server.Transfer from within error handling
structures (try / catch) will cause this, but I suppose you've verified
that?

[quoted text, click to view]

Re: ThreadAbort Exceptions !! HELP !! Tim Greenwood
3/31/2006 2:12:59 PM
Hmm no I haven't checked that one. The focus by everyone else has been SQL
Server and I just don't believe that's the problem. Thanks for the input.
Sunday night is our heavy processing time so I'll have to wait till then to
try this out.


[quoted text, click to view]

Re: ThreadAbort Exceptions !! HELP !! Patrice
3/31/2006 6:48:18 PM
As this is in WaitOne my first thought would be a timeout. Not an expert but
could it be something like not having enough worker threads to process
incoming requests ? Have you checked performance counters for queued
requests ?

Please let us know.
--
Patrice

"Tim Greenwood" <tim_greenwood A-T yahoo D-O-T com> a écrit dans le message
de news: OG5n8tFVGHA.5092@TK2MSFTNGP10.phx.gbl...
[quoted text, click to view]

Re: ThreadAbort Exceptions !! HELP !! Tim Greenwood
4/3/2006 8:10:43 AM
Well we checked for queued requests last night and there were none during
the busiest 3 hour period of the week. Looks like our SQL server box is
really just this busy. We will have to go down a different road. Thanks
for taking time to respond!

[quoted text, click to view]

AddThis Social Bookmark Button