Page 1 of 1

Out of memory on concurrent PPT creation

PostPosted: Thu Mar 19, 2015 12:51 am
by sagarj
I am using docx4j to read and modify ppt template from a web application. There are multiple request at a time. So concurrent read and modify PPT file operations are performed. But after some request server throws out of memory error. So that many request are failed.
I have assigned 5GB memory to JVM.

We load the template using
Code: Select all
PresentationMLPackage ppt = (PresentationMLPackage) OpcPackage.load(new File(inputfilepath));


and save it finally using
Code: Select all
File f1 = new File(outputfilepath);
ppt.save(f1);


We do not close or assign the ppt to null anywhere. Can you help us with the issue?

Re: Out of memory on concurrent PPT creation

PostPosted: Thu Mar 19, 2015 10:23 pm
by jason
See your cross-post at http://stackoverflow.com/questions/2912 ... t-creation

Please don't cross post!!!