We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

OutOfMemory when fetching mails with attached files

I’m using aspose mail for java version 22.2, when fetching an email with attached files of 50 Mo and 1 Go on my JVM I have an out of memory message, and I need to increase the JVM size to 1.5 Go to process it, I find that 1.5 Go just to process 50 Mo is a lot, is there a way to optimize this part? Is there a formula that I can use to know how big my JVM needs to be when processing an email of a giving size?


To ensure a timely and accurate response, please attach the following resources here for testing:

  • The PST file (you can compress it to a ZIP archive and upload it or use Google Drive or Dropbox)
  • Please create a sample application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.