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

Home Posts Topics Members FAQ

asp/iis hanging and failing without error message!

Hi all,

I have a largish asp-driven site that's crashing intermittently in a way
that's just causing me to scratch my head a lot. I've not seen this happen in
about five years of developing asp apps. This is what happens:
asp v3
access 2000 database
win 2003 server.

1. It runs on my server and on my test server just fine. Complete test of
every page completes fine.
2. On the production server, it just fails a few times a day. When I say
fails, you don't get any error message, but it just doesn't serve pages. It
sits there and w3wp.exe consumes slowly more memory (About 50k a second), not
returning any pages.
The user experiences a page that is requested, but nothing comes back,
doesn't even timeout.
3. recycling the worker process or restarting IIS clears the problem and it
runs again.
4. It's definitely asp-related becuase when the box is locked up, it still
returns .htm pages and you can still login using remote desktop.
5. I'm pretty good at closing and disposing of objects.
6. We moved the production server to a different box and it made no
difference, still these intermittent freezes.
7. This is the only site on the box.
8. Don't think its an 'infinite loop' problem (where I omitted rs.movenext).
I've been logged into the box by remote access a couple of times when it's
been reported to me by the client and there hasn't been anything like the
100% cpu utilisation I've seen with that problem 1-2% at most.
Questions:
a) Has anyone seen this before? Does anyone know what could be causing it?
b) could using an inappropriate locktype in db connection strings cause this
problem? If not, could connections (But not recordsets) left open cause this
error?
c) is there any way I can get IIS or any other tool to record exactly what
is causing this lurch, or, failing that, record response times for page
requests. Basically, any profiling tips would be really good. I have remote
desktop access to the machine.

Any help greatly appreciated. I'm tearing chunks of hair out here and the
client is livid.

Cheers,
frank
Jul 22 '05 #1
4 1913
frank wrote:
Hi all,

I have a largish asp-driven site that's crashing intermittently in a
way that's just causing me to scratch my head a lot. I've not seen

Questions:
a) Has anyone seen this before? Does anyone know what could be
causing it? b) could using an inappropriate locktype in db connection
strings cause this problem? If not, could connections (But not
recordsets) left open cause this error?
You aren't closing and destroying your connections on each page? Why not?
You are preventing connection pooling from working by doing this.
c) is there any way I can get IIS or any other tool to record exactly
what is causing this lurch, or, failing that, record response times
for page requests. Basically, any profiling tips would be really
good. I have remote desktop access to the machine.

You don't mention whether you've checked the Event log on the machine.

Are you using On Error Resume Next to mask any errors that occur?

IIS logs all requests so you should check the IIS logs.

Bob Barrows

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 22 '05 #2
"Bob Barrows [MVP]" <re******@NOyah oo.SPAMcom> wrote in message
news:eM******** ******@TK2MSFTN GP11.phx.gbl...
IIS logs all requests so you should check the IIS logs.


Just look for the last ASP to execute ...
Jul 22 '05 #3
Hi guys,

thanks for the suggestions.
Nope: not using on error resume next for just that reason: it masks errors
and makes debugging a nightmare.

I'm pretty sure it's not a coding error as such - checking the logs hasn't
helped me so far. At one point I was able to make the box lurch pretty much
at will by throwing it a complex search query that would return a few
thousand row and perform a reg-ex pattern match on each field. The script
took a few seconds to run, and when it returned to zero the box was locked
up, but again, it doesn't happen every time I run the script. I did this
whilst logged into the server using remote access and cpu useage went up to
100% for a few seconds, then back down. When it's locked-up, it still serves
html pages, just not asp. Actually, next time it dies I'm going to see if it
still serves asp pages that don't contain database hits. When I ran the same
script on my test server, it performed fine, but I can't simulate multiple
users on my test box.

Any ideas?

Cheers,

FRank
"Tom Kaminski [MVP]" wrote:
"Bob Barrows [MVP]" <re******@NOyah oo.SPAMcom> wrote in message
news:eM******** ******@TK2MSFTN GP11.phx.gbl...
IIS logs all requests so you should check the IIS logs.


Just look for the last ASP to execute ...

Jul 22 '05 #4
"=?Utf-8?B?ZnJhbms=?=" <fr***@discussi ons.microsoft.c om> wrote in
news:33******** *************** ***********@mic rosoft.com:

what sort of script timeout have you got? I've come across this kind of
issue once or twice, and forcing the script to stop after a matter of
seconds has helped by allowing me to track down where the hang happens.

Hi guys,

thanks for the suggestions.
Nope: not using on error resume next for just that reason: it masks
errors and makes debugging a nightmare.

I'm pretty sure it's not a coding error as such - checking the logs
hasn't helped me so far. At one point I was able to make the box lurch
pretty much at will by throwing it a complex search query that would
return a few thousand row and perform a reg-ex pattern match on each
field. The script took a few seconds to run, and when it returned to
zero the box was locked up, but again, it doesn't happen every time I
run the script. I did this whilst logged into the server using remote
access and cpu useage went up to 100% for a few seconds, then back
down. When it's locked-up, it still serves html pages, just not asp.
Actually, next time it dies I'm going to see if it still serves asp
pages that don't contain database hits. When I ran the same script on
my test server, it performed fine, but I can't simulate multiple users
on my test box.

Any ideas?

Cheers,

FRank
"Tom Kaminski [MVP]" wrote:
"Bob Barrows [MVP]" <re******@NOyah oo.SPAMcom> wrote in message
news:eM******** ******@TK2MSFTN GP11.phx.gbl...
> IIS logs all requests so you should check the IIS logs.


Just look for the last ASP to execute ...


Jul 22 '05 #5

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

Similar topics

3
1487
by: omission9 | last post by:
Any advice on the following would be much appreciated. I have thrown everything I have at it and am completely stumped. I apologize for the length, I have tried to be as succint as possible. I have a pythoncard/wxPython application. The application works well except that users were reporting occasional crashes. The application would simply...
7
2156
by: Simon | last post by:
My webhosting company cut off my website the other day because i had "too many hanging processes" What does this mean and what can i do to prevent this from happening. They gave me the following readout... X 13:02:32.954 24 844 933 Preproc headers 24.101.225.120 111433 ns 0 un GET...
6
1369
by: zzapper | last post by:
Hi, If I make a mistake designing a JavaScript Form Checker, ie get the name (or case) of a form Field wrong, JavaScript seems to default to immediately returning true and the form is submitted even though incomplete. This makes debugging difficult. Can any of the grey matter here advise on how to get round this, any tips etc. zzapper...
1
3546
by: Rick Brown | last post by:
After reading 30+ threads on the subject and implementing pertinent changes I still have an instance of Excel that won't close. I hope its due to my poor coding and someone can spot the error. I've used Dev Avish's code as a starting point and the Sub does what I want less the hanging instance. Please help if you can, Rick Public Sub...
3
3649
by: Michael Tissington | last post by:
I'm using LoadLibrary to import a DLL in a asp.net application. The dll was written in c++ and is located in the bin folder I have been testing the website on my development machine and our inhouse webserver running IIS 5.1 and it works correctly. I'm specifing a real path to LoadLibrary of the form C:\domains\...\file.dll (obtained...
5
2466
by: David C. Allen | last post by:
I have a vb.net app that is controling excel 2000 thru the com interop interface. I have referenced the excel 9.0 library and have cut down the code in the problem subroutine to this: Dim objExcelApp As New Excel.Application objExcelApp.Quit() objExcelApp = Nothing The problem is excel is hanging in memory and has to be closed by the...
4
21497
by: Mike | last post by:
Hi We are developing an ASP.NET 2.0 application and using the in built Crystal report system that it comes with. We have everything running fine on our development server but when we publish the site to our production server - as soon as we visit the site to test it we get a horrible message from crysta reports that we just dont understand...
1
1692
by: ARC | last post by:
I have some functions that will allow a user to attach to a different back-end database. I added this functionality to the program Ribbon in a custom Access 2007 app. I have 2 ways to attach to a different back end db. One is through a browse function. So the ribbon button option calls a macro that runs a procedure that allows the user to...
3
1676
by: Microsoft | last post by:
Hi I have a c# program that continually runs 24/7 and performs a variety of tasks based on a timer. There is one routine that hangs every Saturday morning without fail. If I restart the program throughout the week is still hangs. I can restart it immediatly after the hang and it runs fine until next Saturday. There is nothing different...
0
7659
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
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
6244
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5208
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3618
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
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.