Observed Jira slowness after upgrade.

Platform Notice: Data Center - This article applies to Atlassian products on the Data Center platform.

Note that this knowledge base article was created for the Data Center version of the product. Data Center knowledge base articles for non-Data Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

After upgrading Jira, observed Jira is extremely slow. 

Environment

8.17.*

Diagnosis

  • Observed high CPU usage post upgrade
  • Further analysis shows Automation for Jira is causing high CPU usage.
  • Disabling plugin, CPU usage was back to normal. 
  • Checked the content of the tables by executing below mentioned queries:

    select count(*) from AO_589059_AUTOMATION_QUEUE;
    select count(*) from AO_589059_AUDIT_ITEM_PROJECT;
    select count(*) from AO_589059_AUDIT_ITEM_ASC_ITEM;
    select count(*) from AO_589059_AUDIT_ITEM_CGE_ITEM;
    select count(*) from AO_589059_AUDIT_ITEM_COMP_CGE;
    select count(*) from AO_589059_AUDIT_ITEM;
    
    select count(*) from AO_589059_RULE_STAT;
    select count(*) from AO_589059_RULE_STAT_ROLLUP_DAY;
    select count(*) from AO_589059_RULE_STAT_ROLLUP_HR;
    select count(*) from AO_589059_RULE_STAT_ROLLUP_MIN;

Cause

  • Observed large number of records in the tables mentioned above.
  • As mentioned in Upgrading to Automation for Jira 7.3 page, need to delete the data from the Automation for Jira tables in the Jira database.
  • They contain entries from audit log, automation queue, and rule statistics.

Solution

Below mentioned steps will resolve the issue. 

  • Stop jira.
  • Take the database backup. 
  • Execute the below mentioned queries to delete the data from the Automation for Jira tables

    TRUNCATE AO_589059_AUTOMATION_QUEUE;
    TRUNCATE AO_589059_AUDIT_ITEM_PROJECT;
    TRUNCATE AO_589059_AUDIT_ITEM_ASC_ITEM;
    TRUNCATE AO_589059_AUDIT_ITEM_CGE_ITEM;
    TRUNCATE AO_589059_AUDIT_ITEM_COMP_CGE;
    TRUNCATE AO_589059_AUDIT_ITEM;
    TRUNCATE AO_589059_RULE_STAT;
    TRUNCATE AO_589059_RULE_STAT_ROLLUP_DAY;
    TRUNCATE AO_589059_RULE_STAT_ROLLUP_HR;
    TRUNCATE AO_589059_RULE_STAT_ROLLUP_MIN;
  • Start jira



Last modified on Jul 28, 2021

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.