james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 23906] - Large emails in the spool cause SpoolManager to throw OutOfMemoryError
Date Mon, 20 Oct 2003 18:14:04 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23906>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23906

Large emails in the spool cause SpoolManager to throw OutOfMemoryError





------- Additional Comments From rohammer@earthlink.net  2003-10-20 18:14 -------
If I recall my earlier experiments correctly, the MimeMessage(Session,
InputStream) constructor is the culprit here.  It reads (or attempts to read)
the whole message into memory, before returning, thus limiting message size to
what can be held in memory at once.

In my mailserver development I get around this by not constructing a MimeMessage
(can't see that I need one), writing the message body right into a file.

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


Mime
View raw message