Marcin Kurylak
|
Posted: December 15, 2009 00:07 by Marcin Kurylak
|
|
I'm experiencing exactly the same problems as in http://old.nabble.com/Problems-with-high-memory-usage-with-large-emails-td12483844.html and I have exactly the same task: dump POP3Message contents to .eml file. Quote: In your case, you know that the only operation you're going to do on the
message is to write it to your stream. While it would certainly be possible
to optimize that case, that wouldn't be the right optimization for all
cases.
A more generally useful optimization that I've considered is to cache
the messages on disk instead of in memory. That would reduce the memory
required for your case, but wouldn't be as efficient.
I'm willing to consider a special optimization to handle your case, but
it certainly couldn't be the default behavior. How can I optimize memory usage for this case? Since I do not know the maximum allowed size of mime messages in the inbox - changing -Xmx option will always be a temporary solution. |
High memory usage on large POP3 messages.
Replies: 7 - Last Post: December 21, 2009 23:02
by: Marcin Kurylak
by: Marcin Kurylak
showing 1 - 8 of 8
Marcin Kurylak
|
Posted: December 19, 2009 19:15 by Marcin Kurylak
|
|
Unfortunatelly I cannot force all customers to switch to IMAP. Do you have a roadmap for future javamail releases? Since you have it on your list, could you give an estimated date? It doesn't have to be anything fancy - simple property would be completely sufficient. In an environment where memory is limited (multithreaded daemon downloading and inserting new mail to DB from multiple accounts at once) dumping message contents to file and reading it with SharedFileInputStream is much safer - it doesn't have to be fast - it has to be reliable. There are customers who do not understand that there are better ways of sending 400mb files . |
Marcin Kurylak
|
Posted: December 20, 2009 11:55 by Marcin Kurylak
|
|
Thank you very much! I've sent you an email. |
Marcin Kurylak
|
Posted: December 21, 2009 12:09 by Marcin Kurylak
|
| I have sent you another one. |
Marcin Kurylak
|
Posted: December 21, 2009 23:02 by Marcin Kurylak
|
| Works like a charm! Thank you very much. |
showing 1 - 8 of 8
Replies: 7 - Last Post: December 21, 2009 23:02
by: Marcin Kurylak
by: Marcin Kurylak








