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

OOM during remotedelivery of big mail

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0-M2
    • Fix Version/s: 3.0-beta3
    • Labels:
      None
    • Environment:
      -Xmx1024M

      Description

      When delivering a large (more than 200M) email:

      INFO 04:11:45,402 | james.mailetcontext | Exception caught in RemoteDelivery.run()
      java.lang.OutOfMemoryError: Java heap space
      at java.util.Arrays.copyOf(Arrays.java:2786)
      at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:94)
      at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1026)
      at org.apache.commons.io.IOUtils.copy(IOUtils.java:999)
      at org.apache.james.core.MimeMessageWrapper.writeTo(MimeMessageWrapper.java:315)
      at org.apache.james.core.MimeMessageWrapper.writeTo(MimeMessageWrapper.java:290)
      at org.apache.james.core.MimeMessageWrapper.writeTo(MimeMessageWrapper.java:286)
      at org.apache.james.core.MimeMessageWrapper.writeTo(MimeMessageWrapper.java:271)
      at org.apache.james.core.MimeMessageWrapper.getMessageInputStream(MimeMessageWrapper.java:661)
      at org.apache.james.core.MimeMessageInputStream.<init>(MimeMessageInputStream.java:58)
      at org.apache.james.core.MimeMessageInputStream.<init>(MimeMessageInputStream.java:79)
      at org.apache.james.queue.activemq.ActiveMQMailQueue.produceMail(ActiveMQMailQueue.java:189)
      at org.apache.james.queue.jms.JMSMailQueue.enQueue(JMSMailQueue.java:207)
      at slpcore.pop3server.smarthost.SlpRemoteDelivery.run(SlpRemoteDelivery.java:808)
      at java.lang.Thread.run(Thread.java:662)

      SlpRemoteDelivery is only slightly modified bundled RemoteDelivery (trunk version), with added smarthost/gateway per sender domain capability. Not affecting other things.

        Attachments

          Activity

            People

            • Assignee:
              norman Norman Maurer
              Reporter:
              arusin Andrzej Rusin
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: