Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Monitoring Mail Queue size

Steph September 18, 2013

Occasionally we experience the OutofHeap error which causes mail queues to stop processing until JIRA is restarted. We'd like to monitor the size of the mail queue so we can detect this before our customers experience long periods without receiving email.

We have JMX enabled and I've investigated the various mbeans within Jira and Catalina without any luck in finding where this data is stored, and it doesn't seem to be in the database, either.

Does anyone know where the data indicating number of queued mail messages is stored?

Thank you!

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Sorin Sbarnea (Citrix)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 20, 2014

The answer is https://jira.atlassian.com/browse/JRA-32263- don't forget to vote / comment on it. Also, before Atlassian is solving it you can use the script that is included in the ticket.

1 vote
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 18, 2013

I guess it is in-memory. You can get the size via API like this:

ComponentAccessor.getMailQueue().size()

Betsy Schwartz February 18, 2014

I'm new to this - can I get to that query from the REST API? I'd like to write an external script to monitor the mail queue size (for xymon and Nagios)

thank you very much

Sorin Sbarnea (Citrix)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 20, 2014
TAGS
AUG Leaders

Atlassian Community Events