Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Courier-imap consumes all available memory
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
trinite
n00b
n00b


Joined: 14 Sep 2004
Posts: 32

PostPosted: Wed Jan 31, 2007 12:04 pm    Post subject: Courier-imap consumes all available memory Reply with quote

I use a gentoo box as a web/mail/ftp/database server. It has about 100 mail users and hosts about 50 websites. Average load still is not higher then 0.02.
It uses qmail, courier-imap, spamassassin, clamav for mail sending/receiving and spam filtering. This all works fine, But there is one problem. After approximately two weeks running (after a reboot), the memory (1G memory, 1G swap) is growing with about 200 MB a day (the first two weeks, the swap stays almost empty, memory does fill up, but that seams normal, see Linux Memory Management or 'Why is there no free RAM?'). When memory and swap is filled up, it's even impossible to start a new ssh session to reboot the server. That has to be done by a reset.

Some weeks ago I was monitoring memory usage of the server and saw that courier-authlib was using a lot of memory, so I restarted the courier-authlib daemon, also triggering a restart of courier-pop3d, courier-imapd, courier-imapd-ssl. (courier-pop3d-ssl is not running). When I checked memory usage the server only uses 500 MB of memory. The next hours it grows to aproximately 1G. but swap was kept untouched for aproximately two weeks again.

After the two weeks the same happens again, and swap filled up with 200 MB a day. restarted courier-authlib again. Problem solved again...

It sure looks that courier-autlib is using a lot of memory if it runs longer than a few weeks. Is someone familiar with this problem (I can't find anyting about it in this forum, other forums or google). And does someone know a good solution for this problem? (I don't think restarting courier-authlib every two weeks is a good solution, although it keeps the server online 8O )

Thanks in advance
Back to top
View user's profile Send private message
trinite
n00b
n00b


Joined: 14 Sep 2004
Posts: 32

PostPosted: Thu Feb 08, 2007 9:46 am    Post subject: Reply with quote

Nobody? :cry:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum