« Previous Next »

Thread: Idle Timeout and recycling timeout values

Last post 06-18-2009 3:55 AM by JaroDunajsky. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 06-15-2009, 3:58 PM

    • jwaz1999
    • Not Ranked
    • Joined on 03-15-2004, 5:40 PM
    • West Los Angeles, California
    • Posts 4

    Idle Timeout and recycling timeout values

    Hello,

    I'm trying to configure IIS 7 to use an idle timeout, but not use a default recycling value after a certain interval.  When in the advanced settings, it requires the recycling value to be greater than or equal to the idle timeout value.  I can remove the recycling value when in the recycling settings however.  Why does IIS 7 not allow you to disable (set to 0) the recycling value in the advanced settings, but allows it to be removed in the recycling settings?

    Thanks,

    P.S. The reason I need the idle timeout set and not the recycling process value is because I don't want the worker process ending at a random time, which will kill all active sessions.  I need my session value and my session state timeout values to match, which will shut down the worker process only after the idle timeout value has been reached.

    Thanks,

    Jeff Wasilauski, MCAD .NET, MCP
    C# .NET-WEB DEVELOPMENT
  • 06-18-2009, 3:55 AM In reply to

    Re: Idle Timeout and recycling timeout values

    The problem with inetmgr you observed will be fixed in Win2008 R2. The value of "0" that disables time based recycling was not special cased.  UI tries to be friendly and prevent administrator to configure idle timeout to be more than time based recycling value since that would cause the idle timeout to never apply. That check makes sense for anything but 0.

    The problem is scoped only to inetmgr check. Runtime should handle the configuration just fine if you bypass the inetmgr check.

    If you want to set the idleTimeout programatically, here is the appcmd command (customize the name of the application pool)

    %windir%\system32\inetsrv\appcmd.exe set config -section:system.applicationHost/applicationPools /[name='DefaultAppPool'].processModel.idleTimeout:"00:30:00" /commit:apphost

    Jaroslav Dunajsky (MSFT, IIS)
Page 1 of 1 (2 items)
Microsoft Communities