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

The mail sender module store a lot of useless data in the prepare queue

    Details

    • Type: Bug
    • Status: Open
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 10.11.5
    • Fix Version/s: None
    • Component/s: Mail
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      When sending a mail asynchronous the ExecutionContext is cloned and stored in a queue with the mail message. Problem is that this cloned context might contain quite a lot of totally useless stuff to remember.

      For example in a myxwiki.org dump I can see tons of PrepareMailQueueItem objects each retaining about 65kB of RAM mostly coming from the ScriptContex. When a lot of mail are sent very quickly (like when sending notification mails) it can quickly explode the RAM combined with XWIKI-16309.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Date of First Response: