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
PresentationMLPackage ppt = (PresentationMLPackage) OpcPackage.load(new File(inputfilepath));
and save it finally using
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?