Avoiding LibreOffice DOS

MJ mafsys1234 at gmail.com
Thu Oct 17 11:49:14 UTC 2019

On 17/10/2019 10:11 pm, Andrea Venturoli wrote:
> Hello.
> (FreeBSD 11.3p3/amd64, 8GiB RAM, with or without a 16GiB swap partition).
> I'm working on a program that produces an .ODS file.
> Sometimes this file is not valid and when LibreOffice (6.3.2) opens it, it will start hogging memory until the system is so loaded that it will stop answering to commands.
> No killing X with Ctrl-Alt-Backspace, no switching to another VT and logging in, no getting in through SSH; the only thing that works is the reset button.
> Of course it's my responsibility to get my program to produce a correct .ODS file.
> Maybe I should try and get in touch with LibreOffice support about how it behaves.
> The real question here is: how do I get the OS to kill LibreOffice (or any other program that hogs my machine) before I need to reset it?
> I tried putting vmemoryuse=6g in /etc/login.conf, but it didn't help.
> Any other hint?
>  bye & Thanks
>     av.

Well the short answer is: You pretty well can't.

If LibreOffice gets in such a tight loop processing that the kernel can't process keyboard commands, then you've got no alternative. Unless you can wait for it to stop, if it will ever stop.

Mucking around with settings is a waste of time until you know what's causing the lock-up. Is it the cpu? Memory exhaustion? etc

Running it virtually would seem the only quick practical approach, or better still fix your program. :-)

> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"

More information about the freebsd-questions mailing list