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

Large emails in the spool cause SpoolManager to throw OutOfMemoryError

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0a3, 2.1, 2.1.3, 2.2.0
    • Fix Version/s: 3.0-beta3
    • Labels:
      None
    • Environment:
      Operating System: MacOS X
      Platform: Macintosh

      Description

      Steps to repro:

      1. Send yourself a very large email (16 megs works for me)
      2. check the SpoolManager log and see this over and over:

      ERROR spoolmanager: Exception in JamesSpoolManager.run null
      java.lang.OutOfMemoryError

      What makes this problem particularly bad is that the spoolmanager doesn't move on to other
      messages but keeps pegging the CPU trying to process this email. To fix it, I have to shut down
      james, delete the email files out of spool and restart.

      EXPECTED: email should spool to the user as expected.

        Attachments

        1. TestMemRec.java
          0.9 kB
          OG
        2. JamesMimeMessage.java
          3 kB
          OG
        3. JamesMimeMessage.java
          6 kB
          OG
        4. JamesMimeMessage.java
          13 kB
          OG
        5. JamesMimeMessage.java
          13 kB
          OG
        6. replace.sh
          0.3 kB
          OG

          Issue Links

            Activity

              People

              • Assignee:
                norman Norman Maurer
                Reporter:
                mattbishop Matt Bishop
              • Votes:
                2 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: