if the following part runs in parallel
ByteArrayOutputStream pdfStream = new ByteArrayOutputStream();
PsDocument document = new PsDocument(officeStream);
boolean suppressErrors = fals…... Did you try to convert big PS file to PDF in multi-threading...issue happens, if multiple big PS files are converted in parallel...