akonadi server leaks memory and consumes CPU until the OOM killer steps in

Bug #709314 reported by Joseph S Tate
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
akonadi (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When I log in to KDE, the desktop starts to come up, but then it hangs. If I switch to a text console and watch things with "top", I see several akonadi instances competing for CPU and RAM. Eventually the OOM killer is invoked when akonadi has used up all the RAM and swap.

This started happening only in the last two days. I had an unclean shutdown, but fsck shows no errors.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: akonadi-server 1.4.0-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.35-24.42-generic 2.6.35.8
Uname: Linux 2.6.35-24-generic x86_64
Architecture: amd64
Date: Fri Jan 28 10:55:44 2011
EcryptfsInUse: Yes
InstallationMedia: Kubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
ProcEnviron:
 LANGUAGE=
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: akonadi

Revision history for this message
Joseph S Tate (jtate) wrote :
Revision history for this message
Joseph S Tate (jtate) wrote :

3020 jtate 20 0 540m 279m 15m R 32 5.7 0:09.20 akonadi_maildir
 3019 jtate 20 0 553m 283m 16m R 32 5.8 0:09.31 akonadi_ical_re
 3022 jtate 20 0 537m 280m 15m R 32 5.7 0:09.17 akonadi_maildis
 3018 jtate 20 0 544m 275m 16m R 29 5.6 0:08.99 akonadi_birthda
 3024 jtate 20 0 534m 278m 15m R 29 5.7 0:09.07 akonadi_nepomuk
 3027 jtate 20 0 539m 283m 15m R 29 5.8 0:09.29 akonadi_vcard_r

Here is the top output.

Revision history for this message
Joseph S Tate (jtate) wrote :

I've finally had time to dig into this some;

I switched to a virtual console and saw this output:
type=1503 audit(1297265279.564:33): operation="file_perm" pid=5830 parent=5801 profile="/usr/sbin/mysqld-akonadi" requested_mask="w::" denied_mask="w::" fsuid=1000 ouid=1000 name="/.local/share/akonadi/db_data/mysql.err"

I deleted my ~/.local/share/akonadi folder and that error went away, but top was still showing akonadi resources running amok:
 2838 jtate 20 0 1038m 784m 15m R 90 16.0 0:27.15 akonadi_nepomuk

Then I deleted my ~/.config directory, and now I can log in without waiting 10 minutes for the OOM killer to step in if I don't kill akonadi before my laptop starts swapping like crazy.

I have saved a backup of the .config directory if someone wants to do some forensics.

Revision history for this message
Joseph S Tate (jtate) wrote :

I'm going to report this issue upstream since I don't think it's a Kubuntu specific bug.

Revision history for this message
Joseph S Tate (jtate) wrote :

https://bugs.kde.org/show_bug.cgi?id=265896 is the bug I reported upstream.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in akonadi (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.