Bug 438775 - Akonadi severe memory leak in akonadiserver
Summary: Akonadi severe memory leak in akonadiserver
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: server (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR major
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-16 21:49 UTC by Bob Mattes
Modified: 2021-06-19 11:24 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bob Mattes 2021-06-16 21:49:02 UTC
SUMMARY

When akonadiserver and Kontact are running, akonadiserver takes a near-constant 8% of CPU and continually accumulates 10,560K of heap memory per second. Quiting Kontact does not stop the memory leak. If I end the akonadiserver process itself, the leak stops and the memory is recovered.

Also, when akonadiserver is accumulating memory and taking 8% of the CPU, some file operations run very slowly. File managers take about a minute to load, as do dialogs to save files from apps. Once akonadiserver is ended, file operations return to normal.

inxi also stalls during execution when akonadiserver is accumulating memory, saying that it cannot start the the freedesktop.org battery service, but works once akonadiserver is ended.

I tried checking the Akonadi log, but Akonadi.error is a 0 byte file.

I believe that all this started with the update to KDE Plasma update 5.22.0.

STEPS TO REPRODUCE
1. Start Kontact (or anything that loads Akonadi)
2. Start KSysGuard to watch akonadiserver resources
3. 

OBSERVED RESULT
akonadiserver heap grows by 10,560K per second and takes 8% constant CPU,
file managers and file open/save dialogs take about 1 minute to load
inxi -Fxx stalls for about a minute waiting for the battery

EXPECTED RESULT
No abnormal memory or CPU usage

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: OpenSuse Tumbleweed
(available in About System)
KDE Plasma Version: 5.22.0
KDE Frameworks Version: 21.04-1.1
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Bob Mattes 2021-06-19 11:24:21 UTC
Fixed in OpenSuse Tumbleweed 20210616.