Out of memory on concurrent PPT creation
Posted: Thu Mar 19, 2015 12:51 am
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
and save it finally using
We do not close or assign the ppt to null anywhere. Can you help us with the issue?
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?