Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Mail Generation Queue is a component that generates email items asynchronously. Email items are then delivered via Jira's Mail Queue and Outgoing Mail Server or via the Outgoing Mail Connections configured in Email This Issue.

Below are some metrics to monitor the internal status of the queue.

The Mail Queue page is useful to monitor the internal status of the queue and to adjust some parameters.

Image Removed

...

Total number of email actions queued for processing. 

If you experience that hundreds or thousands of items are waiting on the queue as an average, consider increasing the number of worker threads.

...

Average time of the last 100 email actions spent on the queue.

Time metric exludes the default queue delay.

...

Maximum number of worker threads to process the email actions.
Number may vary from 0 to 64.
Note
title0 threads

Setting the maximum worker threads to 0 disables asynchronous processing.

Email actions will then be processed synchronously.

...

This is the maximum number of items on the mail queue. 

Although the items on the queue are small (less than 10Kbyte each), the more items are waiting on the queue (as per the Currently on Queue value above), the more memory is allocated.

Theoretically this may lead to Out Of Memory errors putting the system stability at risk. Therefore a hard limitation is introduced to prevent this.

Even the largest Jira instances have normally not more than a few hundred items on the queue as an average.

If you experience this constantly, consider increasing the number of worker threads.

Email Actions processed via the Mail Queue

Email actions are methods to send emails using Email This Issue. 

...

Emails sent manually using the Email Button and Email Screen

...

Emails sent using the Email Issue Filters feature from the Issue Navigator

...

Emails sent using the Email This Issue Workflow post-function

...

(tick) if there is a JQL condition in the post function

(error) Otherwise

...

Emails sent as part of Event Notifications

...

Emails sent as an auto-response for incoming emails

...

Emails sent via the Email This Issue Rest API

...

Asynchronous vs Synchronous Processing

...

Operations performed by users complete faster.

Resilient to internal synchronization of resources like database and indexes.

Especially useful when using conditional event notifications or workflow post functions (JQL filter in Email This Issue)

...

Mail queue takes some memory, it may be necessary increase max heap size.

Mail queue needs some monitoring to properly adjust the queue size, and processing delay.

The Mail Queue has an internal default delay of 30s. Mail items placed on the queue are processed at least 30sec later.

...

Slows down user actions via the user interface.

...

Expertisefinder redirect
forcedfalse
dest{"value":"https://docs.meta-inf.hu/email-this-issue-for-jira-server-data-center/documentation/outgoing-emails/sending-manual-emails/mail-generation-queue-formerly-called-event-queue"}
typeurl
enabledtrue

Thank you for visiting our old product documentation site. Note that we no longer store or update our documentation here.

Please navigate to our new documentation site and update your bookmarks accordingly. If you're looking for the former content of this page, click here.