473,811 Members | 3,026 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.NET pages occasionally time out

We have a Windows 2000 web server (all patches up to date) that runs a
variety of sites, most of which are straight HTML or ASP.

We have recently added a couple of new ASP.NET sites that use ADO.NET to
connect to (different) SQL databases on another server. A couple of times a
week, these new ASP.NET sites suddenly become unavailable (the client
browser times out with no error message).

Its not even the entire site, either. The welcome page is pure html and
never has a problem, but as soon as I click on the login button (which is an
ASPX), it times out.

Like I said, it happens a couple of times a week. Rebooting the web server
seems to fix the problem, but there has to be an explanation for what is
going on.

Any ideas you might have or directions I should start looking in would be
greatly appreciated.
Thanks!

BradC
Nov 18 '05 #1
4 1346
Any ideas you might have or directions I should start looking in would be
greatly appreciated.


We had a similiar problem...I don't remember the exact symptom, but we had
to reboot every two weeks or so. It turned out that there were a few SQL
calls that weren't being closed, so, overtime, it was just running out of
memory. We fixed those and it's been fine since.

-Darrel
Nov 18 '05 #2
Brad,

Using adplus to get a hang dump when it's happening would be the best bet.
Here's an article:

http://msdn.microsoft.com/library/de...us/dnbda/html/
DBGch03.asp

Jim Cheshire [MSFT]
MCP+I, MCSE, MCSD, MCDBA
ASP.NET Developer Support
ja******@online .microsoft.com

This post is provided "AS-IS" with no warranties and confers no rights.

--------------------
| From: "BradC" <br********@yah oo.com>
| Subject: ASP.NET pages occasionally time out
| Date: Thu, 11 Nov 2004 10:09:21 -0600
| Lines: 23
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| Message-ID: <#Q************ *@TK2MSFTNGP12. phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: host195.nordyne .com 65.245.164.195
| Path:
cpmsftngxa10.ph x.gbl!TK2MSFTNG XA03.phx.gbl!TK 2MSFTNGP08.phx. gbl!TK2MSFTNGP1 2
phx.gbl
| Xref: cpmsftngxa10.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:2753 54
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
| We have a Windows 2000 web server (all patches up to date) that runs a
| variety of sites, most of which are straight HTML or ASP.
|
| We have recently added a couple of new ASP.NET sites that use ADO.NET to
| connect to (different) SQL databases on another server. A couple of times
a
| week, these new ASP.NET sites suddenly become unavailable (the client
| browser times out with no error message).
|
| Its not even the entire site, either. The welcome page is pure html and
| never has a problem, but as soon as I click on the login button (which is
an
| ASPX), it times out.
|
| Like I said, it happens a couple of times a week. Rebooting the web
server
| seems to fix the problem, but there has to be an explanation for what is
| going on.
|
| Any ideas you might have or directions I should start looking in would be
| greatly appreciated.
| Thanks!
|
| BradC
|
|
|

Nov 18 '05 #3
Thanks, Jim and Darrel.
Here's an update.

One of the two ASP.NET sites is a pretty straight-forward site that uses a
database to store the page content separate from the layout and style, and
allow customers to pull up information on several different services.

The OTHER web app, however, is a web app designed to query a very LARGE
database and return query results either on the page itself, or by means of
a downloadable XLS file.

Turns out I didn't have anything in the second application preventing users
from trying to run a query on the entire recordset (over 280,000 records).
Any query that would have returned results of about 35,000 or over was
locking up the aspnet_wp.exe process, and the client page was timing out
before any results were returned.

Rebooting fixed the problem because it killed the aspnet_wp.exe process.
I fixed it temporarily by hard-coding a limit of 32,000 into the query
results, which processes and returns a page in a little over 2 minutes.

SO, my next problem: (several problems, actually)
1) How do I keep big giant queries in one ASP.NET app from affecting the
performance of my other applications?
2) How can I show users running queries a "query in progress" page while
data is being retrieved? Any easy way to actually put a progress bar on it?
3) Is there any way to ALLOW retrieval of very large data sets without the
client timing out? My client says that he would like to push the limit up to
at least 65,000.
4) Are there better ways of retrieving large datasets than how I'm doing it?
(I'm giving the user a choice--display the results in an on-page table with
optional paging, or download as XLS. To download as XLS, I'm taking the
results of the table html, pushing it into a datastream, and rebadging it as
XLS. Excel is smart enough to open it up correctly even thought its really
only a HTML file with a giant table inside.)

I know that these are not simple questions, but any ideas you might have
would be greatly appreciated.

BradC

"Darrel" <no*****@nospam .com> wrote in message
news:OS******** ******@TK2MSFTN GP15.phx.gbl...
Any ideas you might have or directions I should start looking in would be
greatly appreciated.


We had a similiar problem...I don't remember the exact symptom, but we had
to reboot every two weeks or so. It turned out that there were a few SQL
calls that weren't being closed, so, overtime, it was just running out of
memory. We fixed those and it's been fine since.

-Darrel

Nov 18 '05 #4
Hi Brad,

1. On Windows 2000, you can't. All ASP.NET applications run under the
aspnet_wp.exe process. The quick answer to your question is to move to
Windows Server 2003.

2. You'll need to spin up a new thread to handle the query. You can use
an async call to do it which essentially does the same thing. The
Framework documentation contains examples, etc.

3. You will need to set Server.ScriptTi meout to a larger value. You will
also need to make sure that debug is set to false in the <compilation>
element in your configuration file. Additionally, you will want to
probably increase the responseDeadloc kInterval in the machine.config file
so that it doesn't cycle the process after 3 minutes.

4. Impossible to answer with any degree of certainty without a code
review. One generic comment I'll make is that many developers do not make
correct use of caching to alleviate problems in this area. Here is a good
article for review:

http://msdn.microsoft.com/library/de...us/dnaspp/html
/aspnet-cachingtechniqu esbestpract.asp ?frame=true

Jim Cheshire [MSFT]
MCP+I, MCSE, MCSD, MCDBA
ASP.NET Developer Support
ja******@online .microsoft.com

This post is provided "AS-IS" with no warranties and confers no rights.
--------------------
| From: "BradC" <br********@yah oo.com>
| References: <#Q************ *@TK2MSFTNGP12. phx.gbl>
<OS************ **@TK2MSFTNGP15 .phx.gbl>
| Subject: Re: ASP.NET pages occasionally time out
| Date: Fri, 12 Nov 2004 08:43:55 -0600
| Lines: 56
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| X-RFC2646: Format=Flowed; Response
| Message-ID: <O8************ **@TK2MSFTNGP09 .phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: host195.nordyne .com 65.245.164.195
| Path:
cpmsftngxa10.ph x.gbl!TK2MSFTNG XA01.phx.gbl!TK 2MSFTNGP08.phx. gbl!TK2MSFTNGP0 9
.phx.gbl
| Xref: cpmsftngxa10.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:2755 91
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
| Thanks, Jim and Darrel.
| Here's an update.
|
| One of the two ASP.NET sites is a pretty straight-forward site that uses
a
| database to store the page content separate from the layout and style,
and
| allow customers to pull up information on several different services.
|
| The OTHER web app, however, is a web app designed to query a very LARGE
| database and return query results either on the page itself, or by means
of
| a downloadable XLS file.
|
| Turns out I didn't have anything in the second application preventing
users
| from trying to run a query on the entire recordset (over 280,000
records).
| Any query that would have returned results of about 35,000 or over was
| locking up the aspnet_wp.exe process, and the client page was timing out
| before any results were returned.
|
| Rebooting fixed the problem because it killed the aspnet_wp.exe process.
| I fixed it temporarily by hard-coding a limit of 32,000 into the query
| results, which processes and returns a page in a little over 2 minutes.
|
| SO, my next problem: (several problems, actually)
| 1) How do I keep big giant queries in one ASP.NET app from affecting the
| performance of my other applications?
| 2) How can I show users running queries a "query in progress" page while
| data is being retrieved? Any easy way to actually put a progress bar on
it?
| 3) Is there any way to ALLOW retrieval of very large data sets without
the
| client timing out? My client says that he would like to push the limit up
to
| at least 65,000.
| 4) Are there better ways of retrieving large datasets than how I'm doing
it?
| (I'm giving the user a choice--display the results in an on-page table
with
| optional paging, or download as XLS. To download as XLS, I'm taking the
| results of the table html, pushing it into a datastream, and rebadging it
as
| XLS. Excel is smart enough to open it up correctly even thought its
really
| only a HTML file with a giant table inside.)
|
| I know that these are not simple questions, but any ideas you might have
| would be greatly appreciated.
|
| BradC
|
| "Darrel" <no*****@nospam .com> wrote in message
| news:OS******** ******@TK2MSFTN GP15.phx.gbl...
| >
| >> Any ideas you might have or directions I should start looking in would
be
| >> greatly appreciated.
| >
| > We had a similiar problem...I don't remember the exact symptom, but we
had
| > to reboot every two weeks or so. It turned out that there were a few
SQL
| > calls that weren't being closed, so, overtime, it was just running out
of
| > memory. We fixed those and it's been fine since.
| >
| > -Darrel
| >
|
|
|

Nov 18 '05 #5

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

Similar topics

25
4336
by: JW | last post by:
I'm putting together a bulletin board system for a community that allows folks to put up for sale postings, notices, etc. These notices usually include the posters' email addresses. A similar posting service which I use is in place in another town and I do occasionally get spam from my notices (not a lot, usually 419 spam.) This is a free system and doesn't require a login, and I want to avoid/minimize the possibility of spammers from...
30
3533
by: Gustaf Liljegren | last post by:
I'm working with some semi-advanced tables with lots of decimal numbers in, and I can't get the alignment to work. http://www.algonet.se/~gustafl/temp/output_ib.html I want numbers aligned to the decimal point. The HTML 4 spec says User agents doesn't need to support 'char' and 'charoff', so I wonder if the problem is lack of support? If so, can the same results be achieved in another way?
4
2200
by: surveyor04 | last post by:
Can someone help me try to figure out why my pages load twice? While debugging other issues, I notice that a great many of my pages run through the onload method twice, and sometimes they run through the onclick method of buttons two times as well. As far as onlick is concerned, I checked the .NET designer code and there is only 1 event handler wired up, so I don't know why these actions are occuring in duplicate. Is there a way to...
21
2982
by: matvdl | last post by:
I have a system that was originally developed in asp - the pages are saved in SQL (there are over 10,000 pages) and saved to a temp directory in the server when requested by a client. I have updated this system and changed the pages that are saved to the server as aspx - everything works fine and pages can be served - but Its not impossible for a single client to request 100 plus pages in one session - as each page is requested it is...
28
3130
by: Skeets | last post by:
i'm passing session and hidden variables between pages. not to mention post values. i'm a little concerned that someone with sufficient knowledge could spoof these vlaues and manipulate the program. is this a valid concern? i'm thinking i can check the submitting page setting up something around the following the following code... $base_name = basename($_SERVER);
12
3476
by: =?Utf-8?B?cGI=?= | last post by:
I am having trouble doing a redirect in an async asp.net implemention. Most of the time it works, but when it doesn't it just "hangs", the browser never gets any return page. If I run it under the debugger, it works fine, though every so often I get a HttpException. System.Web.HttpException was caught ErrorCode=-2147024809 Message="An error occurred while communicating with the remote host. The error code is 0x80070057."...
68
4740
by: zwsdotcom | last post by:
I've been looking for references for some weeks now, but haven't found an answer to the following question. I'd love some help on this: *Without* using JavaScript or other active client-side scripting, server-side includes or frames, is there a way to include a standard header on all pages within a site? The design goal is to have the header links and title graphic on every page kept in some single place, so that a change to the header...
3
1389
by: Hillbilly | last post by:
I just deployed using FTP to send .aspx and .cs files alike and discovered the base class I use with Master Pages is apparently causing problems --unidentified at the moment-- but a test page that inherits from System.Web.UI.Page and its MasterPage loads fine. I imagine this context may have occurred for others using a base class and wonder if there is somewhere you might recommend I start to determine why and how to resolve...
42
8971
by: Santander | last post by:
how to decode HTML pages encoded like this: http://www.long2consulting.com/seeinaction2008/Simplicity_Beach_table/index.htm Is there script that will do this automatically and generate normal fully readable HTML? Santander
0
9727
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9605
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10647
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10386
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10398
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 most users, this new feature is actually very convenient. If you want to control the update process,...
1
7669
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6889
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4339
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
3
3017
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.