473,326 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

ASP.Net 'lock ups'...

Hi all,

I have an ASP.Net application that's online that's 'locking up' from time to
time. It doesn't completely lock up but all of a sudden it appears to be
stuck for about 20-30 seconds, before it catches and fires back up... The
app doesn't restart itself (I'm logging this stuff) - it just starts working
again. If there are multiple requests at that time they all are slow. They
all go through, just at a glacial speed.

I've checked everything I can think of including running perf mon to check
out the Sql Server Connection COunt and locks. When it happens there's
usually nothing happening on the machine, it's next to idle - certainly no
CPU load to speak off.

The ASP.Net app runs in its own application pool on Windows 2003.

I've started logging requests in the process of trying to figure out what's
happening and I notice that this seems to be happening on a fairly regular
basis with some of hte hangs taking 80 seconds or more. It seems it's worst
when the app goes idle for a while. What's interesting is that under load
the app never seems to have a problem and is leisurely serving 20-30
requests a second...

Anybody seen anything like this?

+++ Rick ---

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/wwHelp
----------------------------------
Making waves on the Web

Nov 17 '05 #1
4 1360
can you enable tracing on the application and capture the tracing log, then
corelate the lock up time to the tracing and it should point you to the
method which is burning time. Or after enabling tracing, just sift thru the
log, the large time gap should be viewable which will point you to the
method burning the clock (assuming that it is a method burning the clock).
It may not be but that would be a good way to rule out server side code as
the culprit.
either way, it aint gonna be a walk in the park
hth

"Rick Strahl [MVP]" <ri********@hotmail.com> wrote in message
news:u8**************@tk2msftngp13.phx.gbl...
Hi all,

I have an ASP.Net application that's online that's 'locking up' from time to time. It doesn't completely lock up but all of a sudden it appears to be
stuck for about 20-30 seconds, before it catches and fires back up... The
app doesn't restart itself (I'm logging this stuff) - it just starts working again. If there are multiple requests at that time they all are slow. They
all go through, just at a glacial speed.

I've checked everything I can think of including running perf mon to check
out the Sql Server Connection COunt and locks. When it happens there's
usually nothing happening on the machine, it's next to idle - certainly no
CPU load to speak off.

The ASP.Net app runs in its own application pool on Windows 2003.

I've started logging requests in the process of trying to figure out what's happening and I notice that this seems to be happening on a fairly regular
basis with some of hte hangs taking 80 seconds or more. It seems it's worst when the app goes idle for a while. What's interesting is that under load
the app never seems to have a problem and is leisurely serving 20-30
requests a second...

Anybody seen anything like this?

+++ Rick ---

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/wwHelp
----------------------------------
Making waves on the Web

Nov 17 '05 #2
can you enable tracing on the application and capture the tracing log, then
corelate the lock up time to the tracing and it should point you to the
method which is burning time. Or after enabling tracing, just sift thru the
log, the large time gap should be viewable which will point you to the
method burning the clock (assuming that it is a method burning the clock).
It may not be but that would be a good way to rule out server side code as
the culprit.
either way, it aint gonna be a walk in the park
hth

"Rick Strahl [MVP]" <ri********@hotmail.com> wrote in message
news:u8**************@tk2msftngp13.phx.gbl...
Hi all,

I have an ASP.Net application that's online that's 'locking up' from time to time. It doesn't completely lock up but all of a sudden it appears to be
stuck for about 20-30 seconds, before it catches and fires back up... The
app doesn't restart itself (I'm logging this stuff) - it just starts working again. If there are multiple requests at that time they all are slow. They
all go through, just at a glacial speed.

I've checked everything I can think of including running perf mon to check
out the Sql Server Connection COunt and locks. When it happens there's
usually nothing happening on the machine, it's next to idle - certainly no
CPU load to speak off.

The ASP.Net app runs in its own application pool on Windows 2003.

I've started logging requests in the process of trying to figure out what's happening and I notice that this seems to be happening on a fairly regular
basis with some of hte hangs taking 80 seconds or more. It seems it's worst when the app goes idle for a while. What's interesting is that under load
the app never seems to have a problem and is leisurely serving 20-30
requests a second...

Anybody seen anything like this?

+++ Rick ---

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/wwHelp
----------------------------------
Making waves on the Web

Nov 17 '05 #3
Hi Alvin,

Thanks for the pointers...

I think I've isolated the problem to an issue with SQL Server. Maybe a
deadlock or some other lock scenario since I have restarted IIS and the
problem continues. Right now I have profiler running and tracing the SQL
coming in...

I also have a request log running in the app that logs every single request
with start and end times. Problem is when the failure happens it's always a
random page. The handler looks for requests that take a long time and then
sends me admin email, so hopefully I'll have a chance to catch it <g>...

Trace log is probably not going to help much because of the above logging as
that's already giving me a pretty good idea where to look.

What is interesting is that when the slow requests happen they *ALWAYS*
happen after a long idle period. There will be 20-30 minutes or so before
the last request followed by a sequence of really slow requests... (which
owuld make sense - the requests probably try to access the db multiple times
and each sits for the timeout period including hte logging mechanism), which
at that point of course can't write.

Well, one step at a time... <g>

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/wwHelp
----------------------------------
Making waves on the Web
"Alvin Bruney" <vapordan_spam_me_not@hotmail_no_spamhotmail.com > wrote in
message news:#o**************@TK2MSFTNGP11.phx.gbl...
can you enable tracing on the application and capture the tracing log, then corelate the lock up time to the tracing and it should point you to the
method which is burning time. Or after enabling tracing, just sift thru the log, the large time gap should be viewable which will point you to the
method burning the clock (assuming that it is a method burning the clock).
It may not be but that would be a good way to rule out server side code as
the culprit.
either way, it aint gonna be a walk in the park
hth

"Rick Strahl [MVP]" <ri********@hotmail.com> wrote in message
news:u8**************@tk2msftngp13.phx.gbl...
Hi all,

I have an ASP.Net application that's online that's 'locking up' from time
to
time. It doesn't completely lock up but all of a sudden it appears to be
stuck for about 20-30 seconds, before it catches and fires back up...

The app doesn't restart itself (I'm logging this stuff) - it just starts

working
again. If there are multiple requests at that time they all are slow. They all go through, just at a glacial speed.

I've checked everything I can think of including running perf mon to check out the Sql Server Connection COunt and locks. When it happens there's
usually nothing happening on the machine, it's next to idle - certainly no CPU load to speak off.

The ASP.Net app runs in its own application pool on Windows 2003.

I've started logging requests in the process of trying to figure out

what's
happening and I notice that this seems to be happening on a fairly regular basis with some of hte hangs taking 80 seconds or more. It seems it's

worst
when the app goes idle for a while. What's interesting is that under load the app never seems to have a problem and is leisurely serving 20-30
requests a second...

Anybody seen anything like this?

+++ Rick ---

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/wwHelp
----------------------------------
Making waves on the Web


Nov 17 '05 #4
Hi Alvin,

Thanks for the pointers...

I think I've isolated the problem to an issue with SQL Server. Maybe a
deadlock or some other lock scenario since I have restarted IIS and the
problem continues. Right now I have profiler running and tracing the SQL
coming in...

I also have a request log running in the app that logs every single request
with start and end times. Problem is when the failure happens it's always a
random page. The handler looks for requests that take a long time and then
sends me admin email, so hopefully I'll have a chance to catch it <g>...

Trace log is probably not going to help much because of the above logging as
that's already giving me a pretty good idea where to look.

What is interesting is that when the slow requests happen they *ALWAYS*
happen after a long idle period. There will be 20-30 minutes or so before
the last request followed by a sequence of really slow requests... (which
owuld make sense - the requests probably try to access the db multiple times
and each sits for the timeout period including hte logging mechanism), which
at that point of course can't write.

Well, one step at a time... <g>

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/wwHelp
----------------------------------
Making waves on the Web
"Alvin Bruney" <vapordan_spam_me_not@hotmail_no_spamhotmail.com > wrote in
message news:#o**************@TK2MSFTNGP11.phx.gbl...
can you enable tracing on the application and capture the tracing log, then corelate the lock up time to the tracing and it should point you to the
method which is burning time. Or after enabling tracing, just sift thru the log, the large time gap should be viewable which will point you to the
method burning the clock (assuming that it is a method burning the clock).
It may not be but that would be a good way to rule out server side code as
the culprit.
either way, it aint gonna be a walk in the park
hth

"Rick Strahl [MVP]" <ri********@hotmail.com> wrote in message
news:u8**************@tk2msftngp13.phx.gbl...
Hi all,

I have an ASP.Net application that's online that's 'locking up' from time
to
time. It doesn't completely lock up but all of a sudden it appears to be
stuck for about 20-30 seconds, before it catches and fires back up...

The app doesn't restart itself (I'm logging this stuff) - it just starts

working
again. If there are multiple requests at that time they all are slow. They all go through, just at a glacial speed.

I've checked everything I can think of including running perf mon to check out the Sql Server Connection COunt and locks. When it happens there's
usually nothing happening on the machine, it's next to idle - certainly no CPU load to speak off.

The ASP.Net app runs in its own application pool on Windows 2003.

I've started logging requests in the process of trying to figure out

what's
happening and I notice that this seems to be happening on a fairly regular basis with some of hte hangs taking 80 seconds or more. It seems it's

worst
when the app goes idle for a while. What's interesting is that under load the app never seems to have a problem and is leisurely serving 20-30
requests a second...

Anybody seen anything like this?

+++ Rick ---

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/wwHelp
----------------------------------
Making waves on the Web


Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jason | last post by:
Hi, I am trying to make a php script to calculate the shiping charge automatically by communicating to UPS online tool. In order to do that, I used: 1. XML-RPC implemented by Keith Devens...
0
by: Joel & Jing | last post by:
Hello - There's a revolutionary money making phenomenon that is spreading across the Internet like WILDFIRE! One SINGLE and straight POWERLINE with a profit sharing concept. The only one and the...
6
by: Stephane Belzile | last post by:
Is there a way I can detect in vb.Net the power has switched to a UPS unit in case of power failure? Thanks
6
by: jimfortune | last post by:
A long time ago in a company far, far away :-), I set up UPS WorldShip to use an A97 query to provide up-to-date shipping label addresses using a Data Source Name (DSN) created via the ODBC...
5
by: HttpWebRequest | last post by:
I am trying to get tracking information from UPS web site without much luck. I got this working in VB 60 without any problems by using WinInet functions Here my test program. We need to get...
6
by: Bob | last post by:
Even with relatively small, single-project solutions, when I do simple things to my code such as add a carriage return, delete a line, or sometimes even highlight text with the mouse, the IDE hangs...
2
by: Charlie | last post by:
Hi: I have a new Dell Computer with 1G RAM running VS2005 and SQL 2005. Seems like VS 2005 is very slow and I get lots of IE lock-ups. I find myself waiting a lot. Could it be McAfee? My...
1
by: yazwas | last post by:
Hello All, I'm trying to lock a file under windows, using MinGW, I'm using the same code I use under Linux, but it keeps giving me errors like aggregate `flock fl' has incomplete type and...
25
by: zmickle | last post by:
Excuse my noobness. I am managing an access database that is shared by 4 users. Management does not want to use any technologies outside of access for this application (no SQL Server, etc). I...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.