Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-248

memory management - finalize/nullify after successful delivery of retrieved MailImpl

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 2.1.3
    • None
    • None
    • None
    • Redhat 9

    Description

      My application required an adaptation of the MailRepository.retrieve() method.
      It creates a temporary object on disk and I provided it with a finalize() method for cleaning up.

      The interesting thing is that this finalize is not executed until I shut-down james.
      This leads me to the conclusion that even if there was no ties to a disk operation the
      mipl.setMessage(mimeMessage);
      remains in memory long after the MUA has disconnected.

      Isn't this kind of a memory leak? After all, attachments to such a MIMEMessage can be 13MB large.
      Shouldn't those objects be null-ed latest after the POP3Handler.doQUIT of a session?

      Attachments

        Activity

          People

            Unassigned Unassigned
            ralfhauser Ralf Hauser
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: