We help IT Professionals succeed at work.

How to monitor slow queries

2,132 Views
Last Modified: 2016-12-08
Hi,

We extensively use JIRA for bug tracking and over the couple of days we observed that our JIRA instance is acting slow in result of performance issues. we also see lot of JQUERY statements in atlassian-jira-slow-query.log. How one should analyze and determine these queries. An example of these are,


2011-05-18 02:24:54,943 http-4527-97 INFO jiraadmin 144x30201x57 2lu035 /rest/gadget/1.0/issueTable/jql [issue.search.providers.LuceneSearchProvider_SLOW] JQL query '{assignee = currentUser()} AND {resolution = "unresolved"} order by priority DESC, created ASC' produced lucene query '+issue_assignee:jiraadmin +resolution:-1' and took '420' ms to run.
2011-05-18 02:25:04,070 http-4527-26 INFO jiraadmin 144x30266x54 kbfirf /rest/gadget/1.0/issueTable/jql [issue.search.providers.LuceneSearchProvider_SLOW] JQL query '{assignee = currentUser()} AND {resolution = "unresolved"} order by priority DESC, created ASC' produced lucene query '+issue_assignee:jiraadmin +resolution:-1' and took '8695' ms to run.
2011-05-18 02:25:04,123 http-4527-90 INFO jiraadmin 144x30352x51 16zftld /rest/gadget/1.0/issueTable/jql [issue.search.providers.LuceneSearchProvider_SLOW] JQL query '{assignee = currentUser()} AND {resolution = "unresolved"} order by priority DESC, created ASC' produced lucene query '+issue_assignee:jiraadmin +resolution:-1' and took '8462' ms to run.
2011-05-18 02:35:45,680 http-4527-58 INFO jiraadmin 155x34925x39 1hcphy0 /secure/ComponentBoard.jspa [issue.search.providers.LuceneSearchProvider_SLOW] JQL query '{project = 10081} AND {component is EMPTY} AND {fixVersion is EMPTY} order by cf[10000] ASC, key ASC' produced lucene query '+projid:10081 +component:-1 +fixfor:-1' and took '429' ms to run.

Do we need to set up a monitoring from the backed (DB side) to see who's doing what? If it is ORACLE DB, how we can monitor that?

(If its with MySQL, just enabling slow query in my.cnf would be sufficient?.)
Please suggest

thanks
Comment
Watch Question

Top Expert 2011
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
theGhost_k8Database Consultant
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Devinder Singh VirdiLead Oracle DBA Team
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
thanks

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.