EWS -JAVA API 1.2 - File Attachment Processing above 4MB - Out of Memory RRS feed

  • General discussion

  • Hi All,

    Myself Prabhu. I am using EWS Java API 1.2 for my requirement. My requirement is I have to connect to the exchange server and pull the mail between the time which is specified in the request. Am able to fetch the mails and send in the response. But when the mail has attachments am facing issue.

    For attachments greater than 3MB, am facing out of memory issue in IBM websphere application server. Am using the below method of file attachment class.


    I took the heap dump and found that, eventhough the initial memory heap size of the server is 512MB, we are getting out of memory error at 205MB itself. This became a source stopper for us. Please help me in respolving this issue.

    Thanks in advance.


    Tuesday, January 29, 2013 1:38 PM