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: Tue, 28 Feb 2012 06:23:23 +0000

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

--- Comment #2 from jamesjin_at_kenai.com 2012-02-28 06:23:23 UTC ---
I’ve checked the code of javamail 1.4.4.
You are right. It cannot happen when opening folder.
In our code, we also call POP3Folder#getMessages. This should be the root
cause.

Increase heap size does not help in our case, since we fetch messages for
thousands of users.
This not only causes OOM, but also has huge impact on the performance of our
application.

-- 
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.