LO5 - Speedup pdf conversion ubuntu18.04

asked 2019-04-08 15:01:51 +0200

thiyaguigs gravatar image

updated 2020-08-10 14:44:48 +0200

Alex Kemp gravatar image

Currently using libreoffice --headless to convert doc to PDF, 1 files is converted per second. Currently it takes around 4hrs for 10K files conversion, infuture need to convert 80K files. Is there any setting so 4-5 files are converted per second

OS-Ubuntu18.04 RAM-1GB

edit retag flag offensive close merge delete


How do you think LibreOffice being able to speed up your CPU by a factor of 4 to 5 by just modifying a setting? And you are really using a 1 GB-memory system? This makes - from my perspective - the real question "Is there a way to call libreoffice --headless in parallel to get a higher throughput?" obsolete. I'm even surprised that you get a 1s-per-conversion rate.

Opaque gravatar imageOpaque ( 2019-04-08 15:18:32 +0200 )edit

My document has 2 page without any images, so i'm getting 1s conversion. If libreoffice supports parallel running i can increase hardware specs to find a solution

thiyaguigs gravatar imagethiyaguigs ( 2019-04-09 09:42:09 +0200 )edit

Hi, from my own short test, it shows that there is only one single soffice.bin --headless process. You may be able to start consecutive calls, but it looks like these calls use the initial instance, just like the GUI does, if you start LO a seconds time (It just brings up the GUI of the process being already started). I'm not quite sure about the effect on performance, and I've got not the number of files to convert to make such a test.

Opaque gravatar imageOpaque ( 2019-04-09 09:57:58 +0200 )edit

Thanks for the answer. I will try with available 12K files and let you know the result.

thiyaguigs gravatar imagethiyaguigs ( 2019-04-09 10:17:48 +0200 )edit