I have what I believe to be a memory leak but I don't know how to trace it down.
I have a perl script that syncs up the folders from my old to new imap server
via imap. imapsync was what I was using but there's a problem or two with it.
But it experienced the same problem.
The process is to login once per user and then search/append mail to each
folder. This can be on the order of 50,000 messages per user. I'm running out
of memory on a 1GB RAM installation. Postgresql is on a seperate box and it's
fine -- ~300MB max there.
At the end of each folder I undef all the objects created therein.
At the end of each user, I logout of IMAP, undef the objects and start new with
the next user.
'top' shows this as being a dbmail-imapd memory issue.
Is there something else I can look for?
This seems to be most apparent when I'm appending many emails. Simply looking
them up doesn't seem to be the problem as I can eventually get through the
folders -- but it takes a while...