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!
Community moderators have prevented the ability to post new answers.
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.
I guess it is in-memory. You can get the size via API like this:
ComponentAccessor.getMailQueue().size()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.