Ubuntu – LibreOffice Writer runs slow when openning huge 1000-page docx or odt file

16.04libreofficemicrosoft-officeperformance

After opening more than 800 pages long docx document in Writer 6.2.5.2, response is very slow. The document consists mainly of text. My version of Ubuntu is 16.04.

I tried to find enhancement of memory, but unsuccessfully. I managed to disable the Java runtime in: Tools → Options → LibreOffice → Advanced → "Use a Java Runtime environment", but it does not have visible effect.

Is there any improvement or workaround or is it just normal? In my search I found at best older versions of LibreOffice.

Update 1:
Writer does not get stuck but every editation takes much time. Currently process soffice.bin takes around 450 MB RAM, though my RAM is 8GB and I set TotalCacheSize to 900 MB. One of my 4 cores is usually running on 100%.

Best Answer

There are a memory settings buried deep in the menu structure of LibreOffice which you might wish to experiment with at your own risk.

Specifically, in Options → LibreOffice → Advanced, click Open Expert Configuration; in the dialog, navigate to org.openoffice.Office.Common/Cache.

screenshot showing Options - LibreOffice - Advanced

Then in the search box enter org.openoffice.Office.Common/Cache to navigate to the screen below:

screenshot showing Expert Configuration

after which you will be able to adjust the settings. Note that these values are in bytes.

LibreOffice themselves say that

There's no "acceptable" values, only trial and error may help you. Or may not: the settings control very specific area in memory management. In most aspects, LibreOffice doesn't need any adjustments to just consume all available

Reference

Adding more memory may well be the best option in this case.

Alternatively if changing the memory settings in LibreOffice has no effect, it may be necessary (with v16.04) to consider the size of your swap partition.

the table below may give some guidance here:

enter image description here For your 8Gb Ram it recommends a swap size (without hibernation) of 3Gb and if you are using hibernation 11Gb.

2nd Reference - swap size