Bug 312704 - mail_filter_agent eats up memory
Summary: mail_filter_agent eats up memory
Status: RESOLVED UNMAINTAINED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: Mail Filter Agent (show other bugs)
Version: 4.10
Platform: openSUSE Linux
: NOR grave
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-05 20:18 UTC by furgl
Modified: 2017-01-07 22:15 UTC (History)
4 users (show)

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 furgl 2013-01-05 20:18:08 UTC
memory consumption grows while filtering,
but doesn't decrease when finished
it only grows till stand still

Reproducible: Always

Steps to Reproduce:
1.select some hundred mails
2.press CTRL-J for filtering
3.watch mem consumption of proc mail_filter_agent


Expected Results:  
patch
Comment 1 Martin Bednar 2013-01-17 20:51:12 UTC
I've just been hit by this. Created a new filter, selected a folder and applied it on it (directly in the filter creation dialog). When it finished, akonadi_mail_filter consumed 16% of my 2GB of RAM (according to htop), which hurts. This didn't go down within five minutes, so I restarted akonadi. using KDE 4.9.98 on Chakra.
Comment 2 Laurent Montel 2013-01-18 07:52:21 UTC
so it increases each time that you filter ?
or it stays at 16% ?
Comment 3 Martin Bednar 2013-01-18 08:31:53 UTC
Reapplying the same filter : stayed at 16%
Creating and applying new filter (after running first one) : went up to 33%
Couldn't try much else, since by that time the laptop became unusable...
Comment 4 Laurent Montel 2013-01-18 08:55:24 UTC
ah each time you create a new filter and click apply it it increases ?
I didn't test. Will do
Comment 5 Sergio Martins 2013-01-18 10:36:31 UTC
Please see http://sourceware.org/bugzilla/show_bug.cgi?id=14827

and comment there
Comment 6 furgl 2013-02-08 17:56:15 UTC
@developers:

please check code in mail filter agent for logging feature(s) !!!

I noticed by a fault in my filter rules that:

the less filters kmail processes the less memory it allocates

looking for the filter logs I saw that filter logging
was enabled by default to unlimited

by disabling filter logging
I could decrease memory consumption very significantly
and increase filter speed many times

but: 

memory consumption is still increasing !!!
even not that much than before
so ther must be a memory leak .........

before, with filter logging enabled, I could process some hundred mails till memory usage of filter agent reached about 1.5GB
one core was equipped with nothing but the filteragent but nothing happened any more and I had to restart filter_agent

now with the filter logging disabled kmail could handle about 15000 mails and memory consumption raised only from 14M up to below 250M

greets,

peter
OS12.3RC1 KDE4.10
Comment 7 Denis Kurz 2016-09-24 20:37:07 UTC
This bug has only been reported for versions older than KDEPIM 4.14 (at most akonadi-1.3). Can anyone tell if this bug still present?

If noone confirms this bug for a recent version of akonadi (part of KDE Applications 15.08 or later), it gets closed in about three months.
Comment 8 Denis Kurz 2017-01-07 22:15:47 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.