473,563 Members | 2,735 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1372
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********@hot mail.com> wrote in message
news:u8******** ******@tk2msftn gp13.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********@hot mail.com> wrote in message
news:u8******** ******@tk2msftn gp13.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******** ******@TK2MSFTN GP11.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********@hot mail.com> wrote in message
news:u8******** ******@tk2msftn gp13.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******** ******@TK2MSFTN GP11.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********@hot mail.com> wrote in message
news:u8******** ******@tk2msftn gp13.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
3254
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 http://www.keithdevens.com/software/xmlrpc/ 2. PHP Version 4.3.3 w/ '--with-openssl' 3. The code below is for testing to see if I can communicate to...
0
1305
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 best ever there is in the net. Introducing A Brand-New 100% Internet-Based Business With A Revolutionary New AUTOMATED "No-Rejection" Downline...
6
3987
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
5306
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 Administrator. Now the shipping department at a different company that uses my BillOfLading database would like to be able to have the main form populate...
5
7364
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 Tracking information from www.ups.com/ups.app/xml/track. When I tried to create the WebRequest with above ulr I get server not found. If I try www.ups.com,...
6
1162
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 for 5 to 10 seconds. Task manager reports no CPU activity. The hard drive isn't working. VS is just hanging there, doing nothing, not even...
2
1233
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 productivity has gone down with VS 2005. Any one care to comment? Do I need more memory? Thanks, Charlie
1
4774
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 cannot be defined `F_SETLK' undeclared (first use this function `fcntl' undeclared (first use this function does any one have any idea,
25
14829
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 have split the database into front end and back end databases and put the front end on each of the users' computers. All users can open the front end...
0
7580
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7882
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8103
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7634
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7945
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5481
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3634
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2079
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1194
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.