Our DBA has noticed that there are some queries Jira is launching +1,3M times each 2h. One of these queries is:
update "AO_319474_QUEUE" set "CLAIMANT" = :1
where "AO_319474_QUEUE"."ID" = :2 and
("AO_319474_QUEUE"."CLAIMANT" = :3 and
"AO_319474_QUEUE"."MESSAGE_COUNT" = :4 )
After looking at "System --> Plugin Data Storage" it seems that this table is relative to psmq-plugin (PSMQ - Provides Pretty Simple Message Queueing)
Fortunately, database performance is not affected. However we would like to know if this is correct behavior and the purpose of this plugin.
We faced the same issue and wondered how ineffectively JIRA/ATlassian manages Messaging. After analysing all possible components we found out this must be an Atlassian issue and we found this issue https://jira.atlassian.com/browse/JSDSERVER-5736 which resolved our load and massive attacks on the Database.
you can monitor this SQL Statement with the \watch command (on PostgreSQL) to see what is happening on that table during JIRA operation. We had 2k-3k Operations per Second on that table.
What made me think of an atlassian problem is that it is the same message, that is inserted 100k to 1millon times in that table (see column m_distinct_messages which is same to message_count -> but real_message_count shows the dublicates in that table)
Right(Q."NAME", 15) AS NAME,
Count(M."ID") AS M_real_message_count,
Count(DISTINCT M."MSG_DATA") AS M_distinct_messages
FROM "AO_319474_QUEUE" AS Q
LEFT JOIN "AO_319474_MESSAGE" AS M
ON M."QUEUE_ID" = q."ID"
GROUP BY Q."ID",
HAVING ( Q."MESSAGE_COUNT" != 0 );
Thanks @Marcus Riedel. It seems your scenario doesn't aply to us. There are'nt any repeated messages in our table (with about just 2k messages).
But don't worry. This is an old post. Now we're preparing to upgrade to a new version of Jira Software and Service Desk and we hope this and others issues will dissapear (and others will come! for sure! XXDDD )
Hello there Cloud Community members! Today, we’re thrilled to announce Jira Service Management, the next generation of Jira Service Desk. Jira Service Management touts advancements in IT service ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events