Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
Slow query from the job - "Event Management - Update stuck connect" - Known Error
  • >
  • Knowledge Base
  • >
  • Known Error (Knowledge Base)
  • >
  • Slow query from the job - "Event Management - Update stuck connect"
KB0855387

Slow query from the job - "Event Management - Update stuck connect"


722 Views Last updated : May 4, 2024 public Copy Permalink
KB Summary by Now Assist

Description

The OOB Job: "Event Management  - Update stuck connect" (full name: "Event Management  - Update stuck connectors" /sysauto_script.do?sys_id=8c86a0809352120056f8f179077ffb86) runs every 2 mins and its purpose is to check for stuck connector instances.

This job calls the script include "EvtMgmtUpdateStuckConnectors" (sys_script_include.do?sys_id=63bd5b2053f003000238ddeeff7b1275) which generates a query (from lines 38 - 43) that unions all ecc_queue tables to filter for records on topic, queue, state and sys_updated_on (see filter condition below)

ecc_queue0000.`topic\`='ConnectorProbe' AND ecc_queue0000.\`queue\`='output' AND ecc_queue0000.\`state\`='error' AND ecc_queue0000.\`sys_updated_on\`>='2020-08-16 16:43:53'

This query may take anywhere from milliseconds to minutes, depending on the number of records in ecc_queue. Please note if ecc_queue does not participate in table rotation, the slow query will be on ecc_queue table only.

Steps to Reproduce

Please review System Diagnostics > Stats > Slow Queries for slow queries related to the job: "Event Management - Update stuck connect"

Please note that this KB is applicable for instances with the "Event Management" plugin (com.glideapp.itom.snac) installed.

Workaround

There are 2 options:

a. Please import the attached xml in this KB for the script include: EvtMgmtUpdateStuckConnectors.

b. Upgrade the instance to a release that contains the fix for this PRB.


Related Problem: PRB1421022

Potentially Seen In

There is no data to report.

Fixed In

Quebec

The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

Attachments

Attachments

  • sys_script_include_63bd5b2053f003000238ddeeff7b1275_PRB1421022.xml

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.