locked
asp.net application initialize randomly on IIS 7.5 RRS feed

  • Question

  • User402486659 posted

    Hi,

    I have faced an strange issue with my application. 

    Application get initialized randomly when left for some idle time. Finding some solution over net , I changed application pool's settings like increased recycling time, set Idle Time-out to zero in advance setting of application pool but no luck.

    I have used an splash screen mentioned in <applicationInitialize> under <system.WebServer> in web.config  tag that comes when application get initialize on first request. So if I use application after some times I see this splash screen. It happens randomly because sometimes it does not happen even if I do not use application for 2 days and sometimes it happens in same day if I left my application idle for sometime.

    I really unable to understand now why this is happening ?

    I have hosted my application on IIS 7.5.

    Please let me know if I have posed this question in wrong forum and suggest me where to post this.

    Please help me. Thanks in advance to all.

    Thanks,

    Sanjeet

    Tuesday, August 6, 2013 1:51 AM

Answers

  • User1070236303 posted

    In the advanced settings set

    Start Automatically = true

    Start Mode = AlwaysRunning

    In the process model category

    Idle Time-out (minutes) = 0

    (Not sure all above settings available in 7.5)

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, August 6, 2013 11:02 AM
  • User38443587 posted

    Internet Information Services (IIS) application pools can be periodically recycled to avoid unstable states that can lead to application crashes, hangs, or memory leaks. By default, application pool recycling is overlapped, which means that the worker process that is to be shut down is kept running until after a new worker process is started. After a new worker process starts, new requests are passed to it. The old worker process shuts down after it finishes processing its existing requests, or after a configured time-out, whichever comes first. This way of recycling ensures uninterrupted service to clients. However, if an application in the application pool cannot run more than one instance of itself at a time, overlapping rotation can be disabled.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, August 11, 2013 8:49 PM

All replies

  • User1070236303 posted

    Maybe your app crashing randomly. It happend for me because of some assembly incompatibility. In this case however you will get some error message in the eventlog.

    For the application pool advanced setting, you can also turn off "Ping Enabled".

    Tuesday, August 6, 2013 4:34 AM
  • User402486659 posted

    Thanks for reply.

    I checked eventlog then it showed to me that "application pool was shutdown due to inactivity". After exploring about it over net and I tried with setting Idle TIme-out to zero but application still intialized randomly.

    Tuesday, August 6, 2013 6:42 AM
  • User1070236303 posted

    In the advanced settings set

    Start Automatically = true

    Start Mode = AlwaysRunning

    In the process model category

    Idle Time-out (minutes) = 0

    (Not sure all above settings available in 7.5)

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, August 6, 2013 11:02 AM
  • User38443587 posted

    Internet Information Services (IIS) application pools can be periodically recycled to avoid unstable states that can lead to application crashes, hangs, or memory leaks. By default, application pool recycling is overlapped, which means that the worker process that is to be shut down is kept running until after a new worker process is started. After a new worker process starts, new requests are passed to it. The old worker process shuts down after it finishes processing its existing requests, or after a configured time-out, whichever comes first. This way of recycling ensures uninterrupted service to clients. However, if an application in the application pool cannot run more than one instance of itself at a time, overlapping rotation can be disabled.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, August 11, 2013 8:49 PM