General instance slowness due to slowness in Connect Chat Issue <!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } Users might experience transaction slowness in ServiceNow, but instance health appears good from most (if not all) key performance indicators. In addition to the general slowness, there are examples of connect chat errors and/or slowness in conversations.Users experience transaction slowness in ServiceNow while instance health appears normal across key performance indicators. Along with general slowness, Connect Chat errors and slow conversations are also present. Connect Chat transactions are background REST calls and do not normally cause delays for UI transactions such as loading a form or list. Two specific exceptions exist: 1) A large number of open or active chats per service desk user can cause slowness. Review [Identifying users with excessive open Connect Chat conversations] KB0717049 to check for this condition and resolve it before continuing with this article. 2) Custom business rules on Connect Chat transactions can cause those transactions to run slowly, which in turn delays other UI transactions through session wait time. This article covers the second scenario. It assumes the first scenario — too many open or active chats per user — has already been reviewed and ruled out. Release<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } Any current release of the platform using Connect Chat functionality. Cause<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } This issue can be initially identified by a ServiceNow admin, but secondary verification of the cause may require ServiceNow performance support involvement to determine WHICH business rules are causing the transaction delay. To identify chat as being a potential cause of transaction slowness. Look for the following two indicators. The first might not always be present, but users should be complaining of chat slowness regardless. Look for errors like this: The second and easier to capture indicator of this issue comes from filtering within the transaction logs. Go to the module link, Transactions (all users) and query for a single day, with the following filters: - Created on <day issue is observed> - URL startsWith /api/now/connect/conversations - Response time greater than 4500 - Session wait time is 0 - Created by is not guest Be sure that Response time, Business rule time, URL columns on on the list (as shown below). Resolution<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } Assuming the slow business rule time is found to be present for the specific REST "/api/now/connect/conversations" transactions, determining which business rule is causing the delay can be a little more cumbersome. These are 3 options you can use: 1. Debug business rules — Enable the debug business rules feature, then open and actively use Connect Chat. Review the debug output to identify which business rules fire and are slow during `/api/now/connect/conversations` transactions. 2. Application node log — Use the System ID field on the transaction log list to identify the node where a slow transaction occurred. Download the node log for that node by navigating to All > System Logs > System Log > Node Log File Downloader. Search the log for `Slow business rule` entries associated with the relevant transaction. 3. ServiceNow performance support — Open a support case and request assistance identifying which business rules are causing slow `/api/now/connect/conversations` transactions. Note: Application node logs are very verbose and can be hundreds of megabytes. Downloads may take a long time to complete. Here is an example log file entry for a single chat conversation showing the business rule taking time: 2019-08-27 07:05:19 (895) Default-thread-2 <sessionID> txid=<transaction_id> Slow business rule 'VTB task query' on vtb_task:, time was: 0:00:00.502 2019-08-27 07:05:20 (432) Default-thread-2 <sessionID> txid=<transaction_id> Slow business rule 'VTB task query' on vtb_task:, time was: 0:00:00.532 2019-08-27 07:05:20 (979) Default-thread-2 <sessionID> txid=<transaction_id> Slow business rule 'VTB task query' on vtb_task:, time was: 0:00:00.541 2019-08-27 07:05:21 (529) Default-thread-2 <sessionID> txid=<transaction_id> Slow business rule 'VTB task query' on vtb_task:, time was: 0:00:00.545 2019-08-27 07:05:22 (090) Default-thread-2 <sessionID> txid=<transaction_id> Slow business rule 'VTB task query' on vtb_task:, time was: 0:00:00.556 A careful review of the business rule determined it was custom code and was no longer necessary. Deactivating the business rule promptly resolved the Connect Chat slowness and as a result, more obvious UI transactions were no longer delayed due to excessive session wait (which can also be seen in the transaction list for other transactions). Related Links<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } - Identifying users with excessive open Connect Chat conversations - KB0717049