https://bugs.documentfoundation.org/show_bug.cgi?id=166461

            Bug ID: 166461
           Summary: Huge memory consumption in base module
           Product: LibreOffice
           Version: 25.2.2.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Base
          Assignee: [email protected]
          Reporter: [email protected]

Description:
I just had 5 documents open:
one database (filesize ~1.3 MB)
two calc documents (filesize ~250 kB each)
two writer documents (filesize ~20 kB each)
A total of a little more than 1.8 MB in file size. I was surprised to see in
the process list that LibreOffice consumed more than 6 GB of memory in this
configuration. After closing the database and the two writer documents, the
memory consumption was reduced to 5.5 GB. I can't imagine that LO really needs
that much, hence I assume some kind of memory leak in one of the modules. 

Due to that suspicion, I then closed LO completely and started it again with
only the two calc documents: total memory consumption is about 750 MB.
After opening the database file (without opening a table or anything else), the
memory consumption increased to 830 MB.
Then I opened a form and searched for a particular entry. The memory
consumption increased to 4.9 GB. The consumption gets reduced by 100 MB on
closing the form. Closing the database completely, reduces the memory
consumption by another 100 MB, i.e. 4.7 GB. After opening the database again
and performing the same procedure as before, memory consumption increases to 5
GB.
Closing the database again completely then reduces it to 4.9 GB, after a while
(5 minutes or so) it lowers itself to 4.8 GB. 
It seems that there is a lot of garbage hanging around when handling
databases... 
Luckily, many computers nowadays have a two digit number of RAM available, but
that's not always the case, and the steady increase upon reopening the database
(or another for that matter) can cause a system to stop working.

Steps to Reproduce:
1. Follow the procedure described above. I guess that the size of database,
number of fields etc. will affect the result. You need to observe the memory
consumption during that time.


Actual Results:
s. above

Expected Results:
increase of memory consumption by the size of the database file plus a few MB
(maybe 100, I have no idea, but certainly less than 1 GB) for the database
module, and reducing the memory consumption by (almost) the same amount when
closing the database.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 25.2.2.2 (X86_64) / LibreOffice Community
Build ID: 520(Build:2)
CPU threads: 12; OS: Linux 6.12; UI render: default; VCL: kf6 (cairo+wayland)
Locale: de-DE (de_DE.UTF-8); UI: de-DE
25.2.2-2
Calc: threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to