issues@javamail.java.net

[Bug 4743] javamail 1.4.4 - OOM occurs when receive emails for a POP3 account that has more than 14,612,804 messages in INBOX

From: <bugzilla-daemon_at_kenai.com>
Date: Mon, 02 Apr 2012 19:57:27 +0000

http://kenai.com/bugzilla/show_bug.cgi?id=4743

Bill Shannon <shannon_at_kenai.com> changed:

           What |Removed |Added
----------------------------------------------------------------------------
             Status|NEW |ASSIGNED

--- Comment #3 from Bill Shannon <shannon_at_kenai.com> 2012-04-02 19:57:27 UTC ---
I think the best approach here is to process the messages in batches,
closing the folder between batches so that resources are freed. And
of course if you ask for all Message objects for all messages in the
folder, be prepared for it to use a lot of memory. It's better to
only ask for the Message objects that you need, which might involve
keeping track of which messages you've already processed. (See the
com.sun.mail.pop3 package javadocs for more advice on that.)

I'm not sure there's anything else JavaMail can do to help here.
JavaMail allows your program to process such a large mailbox efficiently,
but your program has to use the JavaMail API appropriately.

-- 
Configure bugmail: http://kenai.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.