Application_Start

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • George Ter-Saakov

    #16
    Re: Application_Sta rt

    I believe that application might start even when there are no pending
    requests.
    IIS monitors changes or health of the application and if it decided that
    something has changed or application deadlocked it will restart it even if
    there is no one using it right now. (obviously given that application has
    not been active before).

    George.


    "Göran Andersson" <guffa@guffa.co mwrote in message
    news:eRyOeGUAIH A.1212@TK2MSFTN GP05.phx.gbl...
    Juan T. Llibre wrote:
    >re:
    >!if it's unrelated to session
    >>
    >It *is* unrelated to session...at the end, but not at the beginning.
    >>
    >At the beginning, they're very much related.
    >For a session to begin to exist, Application_Sta rt *must* have occurred.
    >
    Well, not directly. Before a session can start the application has to have
    started, but the application is started to handle the request rather than
    because it's needed by the session.
    >
    >re:
    >!it's much more likely to be worker process idle timeout
    >>
    >That, or the configured memory/App Pool recycle conditions.
    >>
    >>
    >
    --
    Göran Andersson
    _____
    http://www.guffa.com

    Comment

    • Juan T. Llibre

      #17
      Re: Application_Sta rt

      re:
      !the application is started to handle the request
      !rather than because it's needed by the session

      Even the session is not needed.
      However, there will be no sessions without the application.




      Juan T. Llibre, asp.net MVP
      asp.net faq : http://asp.net.do/faq/
      foros de asp.net, en español : http://asp.net.do/foros/
      =============== =============== ========
      "Göran Andersson" <guffa@guffa.co mwrote in message news:eRyOeGUAIH A.1212@TK2MSFTN GP05.phx.gbl...
      Juan T. Llibre wrote:
      >re:
      >!if it's unrelated to session
      >>
      >It *is* unrelated to session...at the end, but not at the beginning.
      >>
      >At the beginning, they're very much related.
      >For a session to begin to exist, Application_Sta rt *must* have occurred.
      >
      Well, not directly. Before a session can start the application has to have started, but the application is started to
      handle the request rather than because it's needed by the session.
      >
      >re:
      >!it's much more likely to be worker process idle timeout
      >>
      >That, or the configured memory/App Pool recycle conditions.
      >>
      >>
      >
      --
      Göran Andersson
      _____
      http://www.guffa.com

      Comment

      • Cowboy \(Gregory A. Beamer\)

        #18
        Re: Application_Sta rt

        First, .NET will recycle rarely used processes at times. This is a
        conservation method, although you can configure it not to work this way.

        Second, you could have the process set to recycle. This can be done in IIS
        or config files.

        Third, you might have a problem that is causing the recycle. If so, you
        should see entries in the event log.

        --
        Gregory A. Beamer
        MVP, MCP: +I, SE, SD, DBA

        *************** *************** *************** ****
        | Think outside the box!
        |
        *************** *************** *************** ****
        "Joey" <joey.powell@to pscene.comwrote in message
        news:1190905356 .160539.59300@5 7g2000hsv.googl egroups.com...
        asp.net 2/C#
        >
        I have noticed that during periods of inactivity on my website, the
        Application_Sta rt event is firing about every 40-45 minutes. Is this
        normal? Shouldn't the app start once and remain running until I stop
        it?
        >
        JP
        >

        Comment

        • uldpewhbpp

          #19
          Re: Application_Sta rt

          Hello! Good Site! Thanks you! ninlyxbgcq

          Comment

          Working...