473,385 Members | 1,856 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,385 software developers and data experts.

Disabled Idle Timeouts, still timing out after 20 minutes

On IIS 6, I've disabled idle timeouts and any app pool recycling other than
the 29 hour timed recycle.

I've disabled both on the app pool itself and on all app pools at the server
level. I've restarted IIS as well.

After 20 minutes of inactivity, sites are still being shut down. Going by
the logs, there is a time stamp if the idle time is greater than 18 or so
minutes.

Is there any where else that could possibly override this setting?

--
Stefan Barlow
MCSD.Net
Aug 15 '06 #1
8 8098
see machine.config

-- bruce (sqlwok.com)

"Stefan Barlow" <st**********@community.nospamwrote in message
news:4F**********************************@microsof t.com...
On IIS 6, I've disabled idle timeouts and any app pool recycling other
than
the 29 hour timed recycle.

I've disabled both on the app pool itself and on all app pools at the
server
level. I've restarted IIS as well.

After 20 minutes of inactivity, sites are still being shut down. Going by
the logs, there is a time stamp if the idle time is greater than 18 or so
minutes.

Is there any where else that could possibly override this setting?

--
Stefan Barlow
MCSD.Net

Aug 15 '06 #2
Bruce,

Thanks for the response.

I see idleTimeout in processModel is set to Infinite. However, I'm not
running in isolation mode, so I think that the processModel area isn't used
in this case?

Is there somewhere else in the machine.config I should be looking?

Thank you, this has been driving me crazy all day.

--
Stefan Barlow
MCSD.Net
"bruce barker (sqlwork.com)" wrote:
see machine.config

-- bruce (sqlwok.com)

"Stefan Barlow" <st**********@community.nospamwrote in message
news:4F**********************************@microsof t.com...
On IIS 6, I've disabled idle timeouts and any app pool recycling other
than
the 29 hour timed recycle.

I've disabled both on the app pool itself and on all app pools at the
server
level. I've restarted IIS as well.

After 20 minutes of inactivity, sites are still being shut down. Going by
the logs, there is a time stamp if the idle time is greater than 18 or so
minutes.

Is there any where else that could possibly override this setting?

--
Stefan Barlow
MCSD.Net


Aug 15 '06 #3
To clarify, I have a site that takes about 8-10 seconds to start up, so I
don't ever want the site to idle shutdown.

Even after disabling the idle shutdown, I can view a page, then wait 20
minutes and view another page, and the IIS log inserts the startup header and
the page takes 8-10 seconds to load. Refreshing takes < .2 seconds. There
isn't anything in the event logs to signify an app shutdown or startup at any
time.

--
Stefan Barlow
MCSD.Net

Aug 15 '06 #4
Hello Stefan,

From your description, your ASP.NET application has a long startup
time(some intialization work) and you want to make the application avoid
automatically shutdown/stop(avoid the intialiation overhead).

As you mentioned that you've configured all the timeout setting for the IIS
application pool, do you mean you've unchecked the following options for
the IIS application pool?

* Recycle worker process (in minutes):
* Shutdown worker processes after being idle for (time in minutes)

If so, the automatic shutdown or recycle of the worker process should have
been disabled.

Based on my experience, if you find that the ASP.NET application page
respond slowly again(like at initializing, startup time), it is possibly
caused by either of the following issue:

1. the ASP.NET worker process recycled or shutdown.

2. the ASP.NET application(appdomain) restart itself without recycle or
shutdown the workerprocess.

And for IIS worke process shutdown, there should contains log entry in the
application eventlog which record the shutdown or recycle behavior. Have
you found any entry in the application eventlog indicate the the ASP.NET
application's worker process recycled? As for application restart, I
suggest you consider put some code in your ASP.NET application's
"Applcation_Start" or "Application_End" event (in global.asax) and write
some info into EventLog to trace the application restart behavior. Here is
a good article from ScottGu's blog describing how to write custom event
entry to record ASP.NET application shutdown.
#Logging ASP.NET Application Shutdown Events
http://weblogs.asp.net/scottgu/archi...14/433194.aspx

Here is a web kbalerts listed some existing problem of ASP.NET application
restart:

#Why is my ASP.NET application restarting?
http://www.kbalertz.com/Feedback_871042.aspx

Hope this helps. Please feel free to let me know if there is any other
information you wonder.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.





Aug 16 '06 #5
Steven,

Thank you for the response. I have disabled recycling based on time and
idle. I also turned on logging for all recycle events and restarted IIS.

I attached a debugger and I can see that my Application_OnStart event is NOT
being called again on the mysterious recycle. I do see the pages being
recompiled in the debug though.

There are also no events being logged to the event log.

The only detail is an increase in load time for the first request after the
20 minute wait (debug output showed compilation happening) and the Header
stamp in the IIS log file.
--
Stefan Barlow
MCSD.Net

Aug 16 '06 #6
Hello Stefan,

Thanks for your reply.

I've discussed with some other engineers, as for the following things:

==============
(debug output showed compilation happening) and the Header stamp in the IIS
log file.
==============

Would you provide some detailed content of teh output and "header stamp" to
us?

If the application pages are really recompiled without application
restarting, I think it is likely cause by some of the following things:

1. Any of the page source file or aspx content file has been modified(or
any of its dependencies/assemblies in bin dir has been modified)

2. Is there any anti-virus software on the machine which will monitoring
the ASP.NET temporarly dir? Also, is your server updated all the lastest
service patches? I've ever met some page recompilation issue is caused by
some external program modified the ASP.NET appliation's dynamic compiled
assembly or source file under Temporary ASP.NET folder.

In addition, as for the web appilcation, have you set the <compilation
debug="xx" /attribute to "false" so that the pages will be batch compiled
under release mode. If you haven't set it to release mode, you can set the
attribute to false to see whether it helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
Aug 17 '06 #7
Steven,

We had debug=true on until a few days ago. I did an IISRESET after turning
it off. The last few times we tried we are no longer seeing the asseblies
being loaded in debug after the 20 minutes.

I just viewed the page again and it took 5.6 seconds to build the page.
This count is the entire time from BeingRequest to EndRequest, and can be
pre-empted by Application_Start.

Viewing trace.axd afterwards showed pages going back until 12:30am
yesterday, and from what I understand, this list is cleared when an
application recycles?

The header I refered to is the following entry in the middle of the IIS log
file:
#Software: Microsoft Internet Information Services 6.0
#Version: 1.0
#Date: 2006-08-17 14:36:27
#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port
cs-username c-ip cs(User-Agent) cs(Referer) sc-status sc-substatus
sc-win32-status sc-bytes cs-bytes

Thank you!
--
Stefan Barlow
MCSD.Net
"Steven Cheng[MSFT]" wrote:
Hello Stefan,

Thanks for your reply.

I've discussed with some other engineers, as for the following things:

==============
(debug output showed compilation happening) and the Header stamp in the IIS
log file.
==============

Would you provide some detailed content of teh output and "header stamp" to
us?

If the application pages are really recompiled without application
restarting, I think it is likely cause by some of the following things:

1. Any of the page source file or aspx content file has been modified(or
any of its dependencies/assemblies in bin dir has been modified)

2. Is there any anti-virus software on the machine which will monitoring
the ASP.NET temporarly dir? Also, is your server updated all the lastest
service patches? I've ever met some page recompilation issue is caused by
some external program modified the ASP.NET appliation's dynamic compiled
assembly or source file under Temporary ASP.NET folder.

In addition, as for the web appilcation, have you set the <compilation
debug="xx" /attribute to "false" so that the pages will be batch compiled
under release mode. If you haven't set it to release mode, you can set the
attribute to false to see whether it helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
Aug 17 '06 #8
Thanks for your reply Stefan,

Sorry for the late response due to a sudden sickness last weekend :(.

So you've found the page's recompilation behaves different after you turn
off the <compilation debug="xxx"/and reset IIS? As for the <compilation
debug="xx" /setting, we always recommend that we turn it off(set it as
release) mode when we deploy application in production environment(or
simulate the production environment testing).

When under release mode, the ASP.NET runtime will perform batch compilation
against the pages in web appilcation. This means the runtime compiler will
batch compile pages/usercontrols as much as possible (not only the one was
requested by client, this the behavior under debug mode). And there are
some other behaviors different from debug and release mode in ASP.NET
application. For example, the httpRunTime's maxRequestTimeout setting will
only work when the application is under release mode....

As for the "trace.axd", you're right that the trace record is stored in a
buffer which will be cleared automatically when the application instance
restart(we can also manually clear it). It is the
"System.Web.Handlers.TraceHandler" class which handles the request against
"Trace.axd" in each ASP.NET web application.

If there is any other information you wonder, please feel free to let me
know.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

Aug 22 '06 #9

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

Similar topics

17
by: los | last post by:
Hi, I'm trying to create a program similar to that of Google's desktop that will crawl through the hard drive and index files. I have written the program and as of now I just put the thread to...
1
by: jj | last post by:
I've got one database server that works fine when transferring large amounts of data, but a new one that has been setup seems to want to timeout or drop the connection after a period of time. I've...
19
by: Frank Rizzo | last post by:
I want to log the user out when there has been a period of inactivity in the application. The key here is inactivity of the application, not the system. I know that you can retrieve the...
8
by: enahar | last post by:
Hi, How to timing out the asp.net web application when not in use for 15 minutes although I am using the code in web.config file as below: <authentication mode="Forms"> <forms...
2
by: JThomas | last post by:
Hello! I'm having trouble with a page apparently causing my client's Safari browser to time out. I don't actually have access to a Mac & Safari, and haven't been able to physically see this...
7
by: Dave | last post by:
I would like to know how I go about showing a login form whenever the compuer is idle for 'x' minutes. I only know that it is going to use timers. -- L. A. Jones
2
by: teo | last post by:
Hallo, on long elaborating tasks (in example a button clicked on an .aspx page so the hourgless appears) I noticed that after 5 minutes a page called "Impossible visualizzare la pagina"...
1
by: =?Utf-8?B?VCBSYXkgSHVtcGhyZXk=?= | last post by:
I have an ASP.NET 2.0 web app using forms authentication and an ASP.NET Membership database. Internal users access the app from the intranet, but they are authenticated by the membership module....
4
by: Giampaolo Rodola' | last post by:
Hi there. We're talking about an asyncore-based server. Just for the heck of it I'd like to set a timeout which will disconnects the clients if they're inactive (i.e., no command or data transfer...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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,...
0
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...

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.