https://bugs.documentfoundation.org/show_bug.cgi?id=163855
Bug ID: 163855
Summary: soffice called by Java (via ProcessBuilder) is very
slow on JDK23
Product: LibreOffice
Version: 24.8.2.1 release
Hardware: All
OS: macOS (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: LibreOffice
Assignee: [email protected]
Reporter: [email protected]
Description:
When I convert a docx file to PDF by using Java's ProcessBuilder API, it runs
fine on JDK 22 (takes around 1sec), but on JDK 23 is very slow (around 8 min).
I see the soffice process take 100% CPU, but eventually the conversion is
succesful.
Steps to Reproduce:
1. Take a docx file as input
2. Run the given Java program on JDK23
3. It takes around 8 mins to finish (conversion will succeed)
Actual Results:
Conversion to PDF (an to TXT) is very slow on the latest Java release.
Expected Results:
I expected around the same speed of conversion as on JDK 22
Reproducible: Always
User Profile Reset: No
Additional Info:
//This is my test program:
public static void main(String[] args) throws IOException,
InterruptedException {
ProcessBuilder pb = new
ProcessBuilder("/Applications/LibreOffice.app/Contents/MacOS/soffice",
"--convert-to", "pdf", "/tmp/tempdocument.docx", "--outdir", "/tmp" );
pb.inheritIO();
Process p = pb.start();
p.waitFor();
}
--
You are receiving this mail because:
You are the assignee for the bug.