Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - ASP.NET Restart Problem

 
Thread Tools Search this Thread
Old 07-06-2004, 02:57 AM   #1
Default ASP.NET Restart Problem


We are experiencing the following problems concerning ASP.NET: our
ASP.NET application, written in .NET 1.1 platform, and hosted in IIS 5.0
environment, experience frequent session timeout problem. After tracing, we
find that it should be caused by "ASP.NET Application Restart" (proved by
incremented counter for "Application Restarts" of "ASP.NET 1.1.4322" in
"Performance" whenever the timeout happens).

From MSDN documentation, we find that the possible reasons are:
- changes in web.config or machine.config
- changes in files in \bin folder
- new folder under web application folder
- changes of files under web application folder
Besides, MS KB also tells us of the possible effect of anti-virus
product. However, we have eliminated the above factors (no files added /
modified, anti-virus product shut down), and the problem remains.

So, we want to ask for the following:
1. We want to know the exact / detailed reason why asp.net application
would restart (e.g. if caused by files changes, which file? what application
changes that file?), is there any place / log file we can find for that?
2. is there any reason behinds those listed above that would cause the
restart?
3. Any method to turn off the ASP.NET restart function
4. If it is turned off, what will be the side effect

The following is more details of the OS environment:
- Windows Server 2000 Sp4 (Eng.)
- .NET 1.1 (no hotfix applied explicitly unless downloaded through windows
update)
- IIS 5.0 (no hotfix applied explicitly unless downloaded through windows
update)







=?Utf-8?B?YW1kaXNoaWdo?=
  Reply With Quote
Old 07-06-2004, 03:04 AM   #2
Alvin Bruney [MVP]
 
Posts: n/a
Default Re: ASP.NET Restart Problem
have a look at your application log on the webserver. it lists the reason
for the asp.net process restart.

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
"amdishigh" <> wrote in message
news:40839B34-7DF5-4265-B61C-...
> We are experiencing the following problems concerning ASP.NET: our
> ASP.NET application, written in .NET 1.1 platform, and hosted in IIS 5.0
> environment, experience frequent session timeout problem. After tracing,
> we
> find that it should be caused by "ASP.NET Application Restart" (proved by
> incremented counter for "Application Restarts" of "ASP.NET 1.1.4322" in
> "Performance" whenever the timeout happens).
>
> From MSDN documentation, we find that the possible reasons are:
> - changes in web.config or machine.config
> - changes in files in \bin folder
> - new folder under web application folder
> - changes of files under web application folder
> Besides, MS KB also tells us of the possible effect of anti-virus
> product. However, we have eliminated the above factors (no files added /
> modified, anti-virus product shut down), and the problem remains.
>
> So, we want to ask for the following:
> 1. We want to know the exact / detailed reason why asp.net application
> would restart (e.g. if caused by files changes, which file? what
> application
> changes that file?), is there any place / log file we can find for that?
> 2. is there any reason behinds those listed above that would cause the
> restart?
> 3. Any method to turn off the ASP.NET restart function
> 4. If it is turned off, what will be the side effect
>
> The following is more details of the OS environment:
> - Windows Server 2000 Sp4 (Eng.)
> - .NET 1.1 (no hotfix applied explicitly unless downloaded through windows
> update)
> - IIS 5.0 (no hotfix applied explicitly unless downloaded through windows
> update)
>
>
>
>
>





Alvin Bruney [MVP]
  Reply With Quote
Old 07-06-2004, 04:46 AM   #3
=?Utf-8?B?YW1kaXNoaWdo?=
 
Posts: n/a
Default Re: ASP.NET Restart Problem
Hi Alvin,

Thank you for your reply. But what source should we look at? Is it "ASP.NET [Version No]" (our version no is 1.1.4322.0)? Our problem - ASP.NET AppDomain Restart - does not make a new entry there of this source. Should we configure any switch to turn this logging on?

Regards,
Patrick

"Alvin Bruney [MVP]" wrote:

> have a look at your application log on the webserver. it lists the reason
> for the asp.net process restart.
>
> --
> Regards,
> Alvin Bruney
> [ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
> Got tidbits? Get it here... http://tinyurl.com/27cok
> "amdishigh" <> wrote in message
> news:40839B34-7DF5-4265-B61C-...
> > We are experiencing the following problems concerning ASP.NET: our
> > ASP.NET application, written in .NET 1.1 platform, and hosted in IIS 5.0
> > environment, experience frequent session timeout problem. After tracing,
> > we
> > find that it should be caused by "ASP.NET Application Restart" (proved by
> > incremented counter for "Application Restarts" of "ASP.NET 1.1.4322" in
> > "Performance" whenever the timeout happens).
> >
> > From MSDN documentation, we find that the possible reasons are:
> > - changes in web.config or machine.config
> > - changes in files in \bin folder
> > - new folder under web application folder
> > - changes of files under web application folder
> > Besides, MS KB also tells us of the possible effect of anti-virus
> > product. However, we have eliminated the above factors (no files added /
> > modified, anti-virus product shut down), and the problem remains.
> >
> > So, we want to ask for the following:
> > 1. We want to know the exact / detailed reason why asp.net application
> > would restart (e.g. if caused by files changes, which file? what
> > application
> > changes that file?), is there any place / log file we can find for that?
> > 2. is there any reason behinds those listed above that would cause the
> > restart?
> > 3. Any method to turn off the ASP.NET restart function
> > 4. If it is turned off, what will be the side effect
> >
> > The following is more details of the OS environment:
> > - Windows Server 2000 Sp4 (Eng.)
> > - .NET 1.1 (no hotfix applied explicitly unless downloaded through windows
> > update)
> > - IIS 5.0 (no hotfix applied explicitly unless downloaded through windows
> > update)
> >
> >
> >
> >
> >

>
>
>



=?Utf-8?B?YW1kaXNoaWdo?=
  Reply With Quote
Old 07-06-2004, 09:10 AM   #4
Steven Cheng[MSFT]
 
Posts: n/a
Default Re: ASP.NET Restart Problem
Hi Patrick,

As for the asp.net application restart problem. Yes, the reasons you listed
in the first message covered almost all the general causes. In addition,
you may also have a look at the <processModel> setting in the
machine.config file and the this element has some certain attributes for
example, the
1. responseDeadlockInterval attribute which specifies the time interval,
in standard process model format (hr:min:sec), after which the process will
be restarted if the following conditions are met:
a.There are queued requests.
b.There has not been a response during this interval. The default is 3
minutes.

2.memoryLimit attribute which specifies the maximum allowed memory size,
as a percentage of total system memory, that the worker process can consume
before ASP.NET launches a new process and reassigns existing requests. The
default is 60 percent. If the application's memeory use exceed this
limitation, the application will also restart.

#<processModel> Element
http://msdn.microsoft.com/library/en...cessmodelSecti
on.asp?frame=true

In addition, generally such application restart behavior may have some logs
info in the Server's EventViewers. You can have a further check in the
Application node of the EventViewer to see whether it can provide any
clues. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx




Steven Cheng[MSFT]
  Reply With Quote
Old 07-06-2004, 09:34 AM   #5
=?Utf-8?B?YW1kaXNoaWdo?=
 
Posts: n/a
Default Re: ASP.NET Restart Problem
Hi Steven,

Thx for your reply. Concerning the "processModel" setting, is this controlling the "worker process" restart and/or application restart? From my understanding, it would lead to worker process start but not application restart; and my monitoring shows we are experiencing session timeout coz of application restart.

For the "application log" in event log, what source should we monitor for? Is it "ASP.NET [version]"? Searching for this yields not much result; the only entries we found are "asp.net unexpectedly ended" that appear when aspnet_wp.exe is killed in task manager. If that's not the correct source, what else should we look at? We are getting quite many / frequent new entries in application log so it would be quite difficult to locate the exact entries should the source not known.

Thank in advance!


"Steven Cheng[MSFT]" wrote:

> Hi Patrick,
>
> As for the asp.net application restart problem. Yes, the reasons you listed
> in the first message covered almost all the general causes. In addition,
> you may also have a look at the <processModel> setting in the
> machine.config file and the this element has some certain attributes for
> example, the
> 1. responseDeadlockInterval attribute which specifies the time interval,
> in standard process model format (hr:min:sec), after which the process will
> be restarted if the following conditions are met:
> a.There are queued requests.
> b.There has not been a response during this interval. The default is 3
> minutes.
>
> 2.memoryLimit attribute which specifies the maximum allowed memory size,
> as a percentage of total system memory, that the worker process can consume
> before ASP.NET launches a new process and reassigns existing requests. The
> default is 60 percent. If the application's memeory use exceed this
> limitation, the application will also restart.
>
> #<processModel> Element
> http://msdn.microsoft.com/library/en...cessmodelSecti
> on.asp?frame=true
>
> In addition, generally such application restart behavior may have some logs
> info in the Server's EventViewers. You can have a further check in the
> Application node of the EventViewer to see whether it can provide any
> clues. Thanks.
>
> Regards,
>
> Steven Cheng
> Microsoft Online Support
>
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>
> Get Preview at ASP.NET whidbey
> http://msdn.microsoft.com/asp.net/whidbey/default.aspx
>
>
>



=?Utf-8?B?YW1kaXNoaWdo?=
  Reply With Quote
Old 07-07-2004, 11:04 AM   #6
Steven Cheng[MSFT]
 
Posts: n/a
Default Re: ASP.NET Restart Problem
Hi Patrick,

Thanks for your followup. Yes, the <processModel> limitations I mentioned
is concerned with asp.net process's recycle issue. Since you mentioned that
your application only restart the application domain, yes? How do you find
this behavior? Just by noticing that the sessionstates are lost?
I think you can try adding some codes in the Global object's
Application_Start event and write a log file to see whether the application
is really random restarted and also the Server.GetLastError api may help
provide some info on whether there is any error at that time.
Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx



Steven Cheng[MSFT]
  Reply With Quote
Old 07-08-2004, 12:27 PM   #7
Steven Cheng[MSFT]
 
Posts: n/a
Default Re: ASP.NET Restart Problem
Hi Patrick,

Since you found that the "Application Restart" counter increase in your
performance monitor, how much is its top value? Also, are there many other
asp.net web applications running on this machine? The "Application Resart"
counter may log all the applications on the server's restart event.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx





Steven Cheng[MSFT]
  Reply With Quote
Old 07-08-2004, 01:27 PM   #8
=?Utf-8?B?YW1kaXNoaWdo?=
 
Posts: n/a
Default Re: ASP.NET Restart Problem
Hi Steven,

The server host two ASP.NET application; and two of them exhibit the same session timeout problem. And the counter value would keep incrementing until the server is rebooted. The top value we have noticed of is around 80 times. One more thing worth to mention is that the "worker process restart" is always very low (always 0; seldom incresed to 2 -3); so i think we can eliminate the chance that the session timeout is actually caused by worker process restart but mistakenly thought as caused by application restart?

Regards,
Patrick

"Steven Cheng[MSFT]" wrote:

> Hi Patrick,
>
> Since you found that the "Application Restart" counter increase in your
> performance monitor, how much is its top value? Also, are there many other
> asp.net web applications running on this machine? The "Application Resart"
> counter may log all the applications on the server's restart event.
>
> Regards,
>
> Steven Cheng
> Microsoft Online Support
>
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>
> Get Preview at ASP.NET whidbey
> http://msdn.microsoft.com/asp.net/whidbey/default.aspx
>
>
>
>



=?Utf-8?B?YW1kaXNoaWdo?=
  Reply With Quote
Old 07-09-2004, 10:48 AM   #9
Steven Cheng[MSFT]
 
Posts: n/a
Default Re: ASP.NET Restart Problem
Hi Patrick,

Thanks for your reply. Then, are there any unhandled exceptions occur in
the applicatoin? As far as I know ,when there is unhandled exception occur
in application, the current session will also ended and a new one start.
In addition, does the problem occur when you're visiting some particular
pages in the application? Or is that any particular operations in the web
application which is possbile to cause the restart?


Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx





Steven Cheng[MSFT]
  Reply With Quote
Old 07-09-2004, 11:13 AM   #10
=?Utf-8?B?YW1kaXNoaWdo?=
 
Posts: n/a
Default Re: ASP.NET Restart Problem
Hi Steven,

What type of "unhandled exception" would trigger this? We've experienced some type of unhandled exception in our application that would cause the notorious yellow error page (showing the details what errors occured and where) to appear. Is there some other more serious exception that would trigger the application to restart? And, in that case, is there any exception handler that can be defined on the application, like in global.asax, that can capture such unhandled exception? Thank you very much!

Regards,
Patrick

"Steven Cheng[MSFT]" wrote:

> Hi Patrick,
>
> Thanks for your reply. Then, are there any unhandled exceptions occur in
> the applicatoin? As far as I know ,when there is unhandled exception occur
> in application, the current session will also ended and a new one start.
> In addition, does the problem occur when you're visiting some particular
> pages in the application? Or is that any particular operations in the web
> application which is possbile to cause the restart?
>
>
> Regards,
>
> Steven Cheng
> Microsoft Online Support
>
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>
> Get Preview at ASP.NET whidbey
> http://msdn.microsoft.com/asp.net/whidbey/default.aspx
>
>
>
>



=?Utf-8?B?YW1kaXNoaWdo?=
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Run button problem in IE 7.0 and asp.net jits.santhosh Software 0 09-09-2008 08:09 AM
problem in asp.net sharma_ravi21 General Help Related Topics 1 12-18-2007 08:54 PM
restart problem with windows XP: rivalbulldog General Help Related Topics 2 09-21-2007 10:51 AM
what would cause this problem? Keyboard/Mouse doesn't work every restart Kangol kangoll A+ Certification 4 11-24-2003 10:47 PM
Re: Serious Computer Problem hootnholler A+ Certification 1 11-24-2003 12:18 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46