Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Oct 2019 22:48:44 +1100
From:      MJ <mafsys1234@gmail.com>
To:        Andrea Venturoli <ml@netfence.it>, freebsd-questions@freebsd.org
Subject:   Re: Avoiding LibreOffice DOS
Message-ID:  <be6c4b7f-0a91-8795-3218-65e933c6649d@gmail.com>
In-Reply-To: <eee23781-9264-3de5-1a27-3879e731a5fc@netfence.it>
References:  <eee23781-9264-3de5-1a27-3879e731a5fc@netfence.it>

next in thread | previous in thread | raw e-mail | index | archive | help

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@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?be6c4b7f-0a91-8795-3218-65e933c6649d>