OutOfMemory

Is there a possibility to prevent OutOfMemory Excpetions?

My problem is i make an MailMerge on a Table with a ResultSet but I don’t realy know if there are 10 rows or 1Million Rows in the Resultset. So I don’t know if there are one page or 100 pages in my document.
My Problem is I’m using the aspose words library in a enviroment where i can’t permit to go in OutOfMemory the VM, besouce there are other twenty applications.

It’s an JBOSS Server.

thx

Hi Michael,

Thanks for your request. The only thing I can suggest you at the moment is increasing an amount of virtual memory. For instance:
-Xmx1024m
Best regards.