OutOfMemory error when loading large binary attachemens

  • Share
  • Share

Applies to:
NA

Description:
Occurs when loading large binary attachments

Cause:
You have tried to load large binary attachments.

JAVA-Mail , , ,

  1. admin
    March 20th, 2009 at 10:28 | #1

    Increase the maximum JVM heapsize at startup. Use the “-mx” option if using the standard JVM from Sun. Don’t keep references to the “content” of messages not being used. In certain cases, you could try streaming the message content (using getInputStream()) as raw bytes, use and then discard the used data chunks.

  1. No trackbacks yet.