Hunting a memory leak in KMail
Rolf Eike Beer
kde at opensource.sf-tec.de
Sat Mar 31 23:55:06 BST 2012
Am Samstag 31 März 2012, 23:48:57 schrieb Alex Fiestas:
> For some time I have been experiencing a memory leak that makes KMail go up
> to 1,5Gb of ram when using it for a long period of time, Volker saw it with
> his own eyes and we even tried to valgrind it.
>
> I have been using KMail while keeping an eye in ksysguard and I think I know
> where the leak is (or at least one of them).
>
> Each time I click in an email, memory is leaked, not much but it can be
> appreaciated if you do:
>
> 0-Open system activity and take a look at KMail's RAM
> 1-Enter into a folder with some emails (more than 100?)
> 2-Click on one email
> 3-Long press N (Next email)
> 4-See how memory increase
>
> Changing between folders (I know KMails cache some data) doesn't reduce the
> amount of memory used.
>
> Can anyone reproduce this?
Yes, I can. And it doesn't look as if you need many mail. Looks like when the
last mail in the folder is hit "n" jumps to the first one again, so I cycled a
few dozen times through the same 10 mails and the memory usage increased about
10M.
Eike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20120401/092bb3e5/attachment.sig>
More information about the kde-core-devel
mailing list