Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-16309

PrepareMailQueueManager use an infinite queue

    Details

    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      This means if new mails are sent faster than this queue is handled it can crush the memory. That's what is happening on myxwiki.org for example where we get a OOM and a 350MB PrepareMailQueueManager when notifications mails kicks in.

      Ideally a BlockingQueue should be used with a limited (and probably configurable) size. That way when the queue is full whatever want to send a new mail wait a bit just the time for the queue to have room.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vmassol Vincent Massol
                Reporter:
                tmortagne Thomas Mortagne
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: