When I generate large word document using Aspose.Words.Java 13.x OR 14.x using JRE 1.7, the total number of pages generation capacity reduces. If I use JRE 1.6, I’m able to generate 2000+ more pages when compared to JRE7 in a document. The number might not be same in all cases as it would depends on the content of the document.
Total number of pages generate with JRE 6: 19,000
Total number of pages generate with JRE 7: 16,500
I’ve tested this with IBM and Oracle JRE. The result is the same.
I’m attaching the results along with standalone code to replicate the issue.
The output would be like this.
Aspose product and version is = Aspose.Words for Java : 22.214.171.124
Java version: 1.6.0
Java vendor: IBM Corporation
Java arch: x86
Total count is: 8600
Max heap size: 1024
Total time taken is: 153 seconds
RPE Document used memory (approx) 882 MB.
The above case fails with JRE 7. It fails for count 8500 too.
As a simple test, you could observe that Aspose.WordsForJava with JRE7 consumes 10-20% more memory when compared to JRE6. This impacts scalability.
You should continue to set max heap to 1024 and decrease count to 8000 or whatever is the max limit it succeeds with JRE 1.6.
If you try with the same limit using JRE 1.7, the document generation fails.
Another difference is the “Java arch”. It’s intel x86 in my case and it’s amd64 for you.
Any update on this, Awais?