james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "OG (JIRA)" <server-...@james.apache.org>
Subject [jira] Updated: (JAMES-134) Large emails in the spool cause SpoolManager to throw OutOfMemoryError
Date Sat, 17 May 2008 14:35:55 GMT

     [ https://issues.apache.org/jira/browse/JAMES-134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

OG updated JAMES-134:

    Attachment: JamesMimeMessage.java

I post here an update to src\java\org\apache\james\core\JavaMimeMessage.java because the last
one had issues of not deleting some of the temp files on windows, and not closing filehandles
on linux. This one has operated well on my server for about a week. Use at your own risk.
It is still for james version 2.2

PS. Stefano, I added here a counter to my class, as I have seen in one post of yours about
the old SharedFileInputStream behaviour, so thank you for that post.

> Large emails in the spool cause SpoolManager to throw OutOfMemoryError
> ----------------------------------------------------------------------
>                 Key: JAMES-134
>                 URL: https://issues.apache.org/jira/browse/JAMES-134
>             Project: James
>          Issue Type: Bug
>          Components: SpoolManager & Processors
>    Affects Versions: 2.0a3, 2.1, 2.1.3, 2.2.0
>         Environment: Operating System: MacOS X
> Platform: Macintosh
>            Reporter: Matt Bishop
>             Fix For: Trunk
>         Attachments: JamesMimeMessage.java, JamesMimeMessage.java, JamesMimeMessage.java,
> 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
> 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.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org

View raw message