Bug 122612 - loolwsd taking all RAM / killing server, regardless of loolwsd.xml:config/memproportion
Summary: loolwsd taking all RAM / killing server, regardless of loolwsd.xml:config/mem...
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice Online
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-09 20:24 UTC by Yves
Modified: 2020-07-08 03:42 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yves 2019-01-09 20:24:54 UTC
OS: Archlinux
Software: Collabora 6.0, based on loolwsd 4.0.0, inside NextCloud 15
Hardware: Udoo x86 with 2GB RAM
More details: https://yalis.fr/git/yves/home-server/

Despite setting the configuration like this:

    <memproportion desc="…" type="double" default="80.0">30.0</memproportion>

I have this in `top`:

```
  PID UTIL.     PR  NI    VIRT    RES    SHR S  %CPU  %MEM    TEMPS+ COM.
 1645 lool      20   0  963100 220984 113840 S   0,0  11,3   0:04.55 forkit
 1661 lool      20   0 1197280 207044  79280 S   0,0  10,6   0:01.74 loolkit
 2298 lool      20   0 1197496 206532  79396 S   1,0  10,6   0:01.58 loolkit
 1667 lool      20   0 1197036 205588  78584 S   1,3  10,5   0:01.90 loolkit
 2311 lool      20   0 1196560 202916  77948 S   0,0  10,4   0:01.34 loolkit
 2329 lool      20   0 1194728 201100  75504 S   0,0  10,3   0:01.29 loolkit
 2358 lool      20   0 1195424 200172  76288 S   0,7  10,3   0:01.17 loolkit
 2348 lool      20   0 1195940 196588  76904 S   0,0  10,1   0:01.82 loolkit
27434 postgres  20   0  302668 179920  29164 S   0,0   9,2   0:18.40 postgres
 2374 lool      20   0 1028980 152748  44564 S   4,0   7,8   0:00.53 loolkit
 2405 lool      20   0  963100 109956   2812 R   7,3   5,6   0:00.22 loolkit
```

And this is when I killed loolwsd.service, because one new line taking 10% RAM appeared each second. This is already _way_ more than 30% RAM.

When I don’t kill loolwsd, _it_ kills my server :-/
Comment 1 Yves 2019-01-09 20:25:50 UTC
Oh, I forgot to add: this is without even opening a document. I guess there is some thumbnail-computing going on in Nextcloud.
Comment 2 Timur 2019-12-06 14:17:06 UTC
Aron, please see who can take a look at this one.
Comment 3 Aron Budea 2019-12-09 02:43:46 UTC
Does the same happen with Collabora Online 4.0.9? Additionally, what's the 'num_prespawn_children' configuration item in /etc/loolwsd/loolwsd.xml set to? Seems like a rather large one, what that only for testing?
Comment 4 QA Administrators 2020-06-07 03:48:32 UTC Comment hidden (obsolete)
Comment 5 QA Administrators 2020-07-08 03:42:41 UTC
Dear Yves,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-FollowUp