Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.0-M2
-
None
-
-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.