How to enable Application Pool recycle logging.

Follow
    Applies to:
  • Legacy SecureAuth IdP
Deployment model:
  • On Premises
  • SecureAuth IdP Version Affected:  All

     

    Description: 

    How to enable Application Pool recycle logging in IIS and where to find the resulting logs.

     

     

    Cause:

    By default not all Application Pool recycles are logged by IIS.  IIS allows log entries to be created on a granular level for recycle events triggered by various causes.

     

    Resolution

    1. Open IIS Manager on the IdP appliance and expand the server name | Application Pools.
     
    2. Right Click the application pool for which it is desired to log recycle events  (this will usually be the pool named ".NET v4.5" unless additional custom pools are in use), then click "Advanced Settings".


     
    3. Expand "Generate Recycle Event Log Entry" then set the desired child nodes to True, then click OK.
     
     
    4. Now to view any Application Pool recycle events, simply open the Event Viewer and click on the standard System event log.
     
    5. To view only Application Pool recycle events, add a filter to only include an event source of "WAS"
     
     
     
    6. You should now see all the events:
     
     
     
     
    Note: App Pool recycles only trigger if there are actually any IIS Worker processes for the given App Pool running at the time.  If there are no worker processes running e.g. due to inactivity, then the App Pool recycle has nothing to do and so doesn't do anything and doesn't log anything either.
     

    SecureAuth Knowledge Base Articles provide information based on specific use cases and may not apply to all appliances or configurations. Be advised that these instructions could cause harm to the environment if not followed correctly or if they do not apply to the current use case.

    Customers are responsible for their own due diligence prior to utilizing this information and agree that SecureAuth is not liable for any issues caused by misconfiguration directly or indirectly related to SecureAuth products

    0 out of 0 found this helpful

    Comments

    1 comment
    • UHSA02 all tasks happened on 2/25/2020
      a) installation of updates started - 1:42am
      b) reboot immediately followed
      c) finished post update tasks - 1:44am
      d) there was not a reboot after post update tasks
      e) last instance of Loading assembly error - 12:57:27pm
      f) IIS reset at - ~12:58pm
      g) issue resolved

      UHSA02 - issue started
      2020/02/25 01:49:05 EST

      UHSA01 - issues (saw issues in the logs)
      patch reboot 1:52 on 2/24/2020
      IIS app pool F recycled at 6:59:40am on 2/25/2020
      no issues after pool was recycled

      0
      Comment actions Permalink

    Please sign in to leave a comment.