Resolving the task timeout problemDescription<!-- div.margin{ padding: 10px 40px 40px 30px; } table.tocTable{ border: 1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); padding-top: .6em; padding-bottom: .6em; padding-left: .9em; padding-right: .6em; } table.noteTable{ border:1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); width: 100%; border-spacing:2; } table.internaltable { white-space:nowrap; text-align:left; border-width: 1px; border-collapse: collapse; font-size:14px; width: 85%; } table.internaltable th { border-width: 1px; padding: 5px; border-style: solid; border-color: rgb(245, 245, 245); background-color: rgb(245, 245, 245); } table.internaltable td { border-width: 1px; padding: 5px; border-style: solid; border-color: #E0E0E0; color: #000000; } .title { color: #D1232B; font-weight:normal; font-size:28px; } .spanColor { color: #646464; } h1{ color: #D1232B; font-weight:normal; font-size:21px; margin-bottom:-5px } h2{ color: #646464; font-weight:bold; font-size:18px; } h3{ color: #000000; font-weight:BOLD; font-size:16px; text-decoration:underline; } h4{ color: #646464; font-weight:BOLD; font-size:15px; text-decoration:; } h5{ color: #000000; font-weight:BOLD; font-size:13px; text-decoration:; } h6{ color: #000000; font-weight:BOLD; font-size:14px; text-decoration:; } hr{ border-top-width: 1px; border-top-style: solid; border-top-color: #cccccc; } ul { list-style: disc outside none; margin-left: 0; } li { padding-left: 1em; } --> Resolving the task timeout problem Symptoms There are task timeout error messages on the map and on the Discovery Messages tab. Possible Causes/Resolutions There are several possible causes and resolutions. Possible Cause/Resolution 1 Cause – The MID Server does not pick up tasks because it does not pull messages from the ECC queue on time. Resolution – Perform the following steps: Navigate to the ECC\Queue.Query for records with Topic ServiceDiscoveryProbe, Source matching the IP address on the message, and State is not Processed.Check that there are Queue records classified as Output, with the State attribute set to Ready. Check the CPU consumption on the MID and if the MID CPU consumption is high, add MID Servers using the same range on another machine in order to reduce the load. Possible Cause/Resolution 2 Cause – The MID Server does not pick up tasks because it stopped communicating with the ServiceNow instance. Resolution – Restart the MID Server. Possible Cause/Resolution 3 Cause – The ServiceDiscoveryProbe probe working on the MID Server is slow or stopped functioning. The relevant MID Server is busy with a task that is taking a long time. Resolution – Perform the following steps: Navigate to the ECC\Queue.Query for records with Topic ServiceDiscoveryProbe, Source matching the IP address on the message, and State is not Processed.Check that there are Queue records classified as Output with the State set to Processing.Change the mid.log.level MID configuration parameter to debug, and download the MID Sever logs.Look for exceptions that can help understand why pattern execution is hanging. Modify the task that takes a long time to run for efficiency. Possible Cause/Resolution 4 Cause – The instance is highly loaded and cannot process all input requests on the ECC queue in time. The Worker threads do not initiate Service Discovery Sensors that must pick up the input record from the ServiceDiscoveryProbe. Resolution – Perform the following steps: Navigate to the ECC\Queue.Query for records with Topic ServiceDiscoveryProbe, Source matching the IP address on the message, and State is not Processed.Check that there are Queue records classified as Input.Isolate the flows that mostly occupy the instance by navigating to Active Transactions or Slow Transactions. For more information, see the product documentation topic View and kill active transactions. Possible Cause/Resolution 5 Cause – The processing of the ServiceDiscoveryProbe failed. Resolution – Perform the following steps: Navigate to the ECC\Queue.Query for records with Topic ServiceDiscoveryProbe, Source matching the IP address on the message, and State is not Processed.Check that there are Queue records classified as Input and the State is set to Error.In the instance logs, search for ServiceWatchInitialDiscoveryResultHandler.Find the log message that indicates the reason for this sensor failure and fix it.