Applications Systems

AppInsight for Exchange - A timeout occurred during execution which resulted in the job being canceled

When attempting to poll AppInsight for Exchange the configuration and testing is successful but the following error appears after some time of trying to poll A timeout occurred during execution which resulted in the job being canceled. It times out on Database File And Transaction Logs Dir Info

First published date

11/11/2018 9:14 PM

Last published date

3/3/2025 2:27 AM

Overview

When attempting to poll AppInsight for Exchange the configuration and testing is successful but the following error appears after some time of trying to poll.

Connection timeout. A timeout occurred during execution which resulted in the job being canceled.

In the Debug files, it's hanging on collecting the File and Transaction Log Directory information.

DateTime [Cx] DEBUG SolarWinds.APM.Probes.ProbeExecutors.ProbeHierarchyBatchExecutor - 
    Component probe starting: JobContext - ComponentId: 476469, 
    ComponentName: Database File And Transaction Logs Dir Info
DateTime [Cx] DEBUG SolarWinds.APM.Probes.ProbeExecutors.ProbeHierarchyBatchExecutor - 
    probeParameters:0 resultContext.Inputs:1
DateTime [Cx] DEBUG SolarWinds.APM.Probes.ProbeBase`1 - Remaining Time: 191.6086855 sec.
DateTime [Cx] DEBUG SolarWinds.APM.Probes.Script.PowerShellScriptHelper - Processing 
macros: 3 variables processed
DateTime - Job timeout detected
 

Product section

Server Application Monitor

Cause

The cause of this issue is large directories which store the Mailbox log files and information. When attempting to browse to the directories in Windows Explorer it takes a long time to list all the files.

Resolution

If the directory lists its contents in a reasonable time increasing the timeout on AppInsight for Exchange will allow it to complete.

Also, on the Exchange side, ensure that Circular Logging is enabled if allowed by the customer's policies as this can cause large file buildups in Exchange.

Solution 1:
A Workaround which we can try from an Application Point of view to negotiate larger Exchange environments is to tweak the WinRm Session Limits:

  1. Login to the Monitored Exchange Server
  2. Open the command prompt in Run As Administrator context.
  3. Type winrm get winrm/config/winrs to get your current configuration.

 

Increasing the limit of any of these settings, it can also be done using the Winrm command.

To change the number of concurrent users and shells per user, use the following commands:

winrm set winrm/config/winrs @{MaxConcurrentUsers="30"}
winrm set winrm/config/winrs @{MaxShellsPerUser="20"}
winrm set winrm/config/winrs @{MaxMemoryPerShellMB="2048"}

 

Note: This command must be executed on the system you are connecting to remotely using WinRM/WinRS. Once applied this setting is permanent until changed by an administrator.


Solution 2:
Sometimes the Powershell script that polls the Database File And Transaction Logs Dir Info component take too much time to complete. 

You may need to increase the polling frequency and timeout.

1- Edit the application monitor
2- Increase the polling frequency and timeout to 30 minutes (1800 sec).
3- Submit