This schedule job: "Process Vulnerability Solution Metrics Queue" is running a long time 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: ; } } Problem The schedule job "Process Vulnerability Solution Metrics Queue" is running for an extended period, with transactions aging over 8 days despite being configured to run daily. The transaction is manually killed but reappears. The job processes solutions imported through MSRC and RedHat integrations, involving hundreds of thousands of vulnerability records, and is performance-intensive. 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: ; } } All releases 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: ; } } Root Cause The 'Process Vulnerability Solution Metrics Queue' scheduled job is responsible for processing solutions imported through MSRC and RedHat solution integrations. It identifies and assigns preferred solutions to vulnerabilities, rolls them down to vulnerable items, and updates remediation status metrics on the associated solutions. Because this job can involve processing solutions over hundreds of thousands of vulnerability records, it is performance-intensive. The initial import of solutions / vulnerabilities or any run following a large ingestion may take a significant amount of time to complete. However, under normal circumstances, when fewer solutions are queued, the job is expected to finish much faster.That said, we understand the job can sometimes take an exceptionally long time, occasionally more than a day, or even multiple days. We've received similar feedback from other customers, and we are planning performance optimizations for this job in upcoming releases. 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: ; } } Steps to Resolve 1. During research previous cases for the possible workaround, did come across following one to let customer consider.------------------------------------------------------------------------------------------------------------------------------------------------Please try this temporary workaround which might help improve performance of "Process Vulnerability Solution Metrics Queue" job.These performance intensive queries can be disabled by commenting out below three lines in the _ciCounts method in sn_vul.SolutionsUtil script include: (screen-shot attached)this._ciPotCount(solutionIds, counts, [3], 'potactive');this._ciPotCount(solutionIds, counts, [3, 12], 'potndactive');this._ciPotCount(solutionIds, counts, [], 'pottotal'); Before commenting out the lines, ensure you have checked the specific version of SolutionsUtil in your instance. In Vulnerability Response v25.0.7 or above, these lines are 175-177, but this should be verified against your instance's VR version.After commenting out these lines, the Remediation Status page on Solution will no longer have accurate counts for some of the CI count fields. These fields will instead remain set to 0 (or their previous value, if the counting process had been run successfully in the past). The other counting fields (Vulnerable items, % VIs Remediated, etc) will not be affected.This will help improve the performance of the scheduled job.***Please test and validate validate thoroughly on a sub-prod instance to ensure that everything is working as expected before making any changes to your production instance***------------------------------------------------------------------------------------------------------------------------------------------------OR2. There also ask from other customers what if we disable the scheduled job entirely and if any affect on the VR product and below is what our Dev team's response against it.- The 'Process Vulnerability Solution Metrics Queue' scheduled job is responsible for processing solutions imported through MSRC and RedHat solution integrations.- It identifies and assigns preferred solutions to vulnerabilities, rolls them down to vulnerable items, and updates remediation status metrics on the associated solutions.- Disabling this job will no longer populate/update preferred solutions on vulnerabilities and vulnerable items. If customer/business are okay with this and do not want to populate update preferred solutions, customer can can go ahead and disable the job.***AGAIN!!! Please test and validate validate thoroughly on a sub-prod instance to ensure that everything is working as expected before making any changes to your production instance***