Libreoffice on 16.04 - memory settings to prevent freezes?

Solution 1:

Uninstalling libreoffice-gtk* made a significant difference for me. The drawback is that the UI integration would go away.

sudo apt-get remove libreoffice-gtk*

It seems to be a known bug: https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1577093