Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Re: [milter-greylist] Frequent crashes when dumping db

2006-11-25 by shuttlebox

On 11/24/06, Oliver Fromme <olli@...> wrote:
>  File descriptors are not only used for plain files, but
>  also for network connections and other things.  You can
>  view the current descriptors with the "lsof" tool.
>
>  On my personal machine (which has very low traffic), the
>  milter-greylist process currently uses 21 descriptors.

Ok, thanks. I will install lsof.

>  I think 1024 should be plenty.  As I said above, use the
>  "lsof" tool to check how many descriptors are in use by
>  the process.
>
>  Actually, looking at the error message again, it might be
>  the case that the mkstemp() function opens a large number
>  of files while trying to find a unique filename.  If that's
>  the case, then the implementation of mkstemp() of your OS
>  (which you still didn't mention) is broken.

Sorry, it's Solaris 9. But it shouldn't be hard to find a unique
filename in a directory containing only three files..?

>  No, .profile is read only by login shells.  You should put
>  the ulimit command inside the init.d script right before
>  milter-greylist is started.  The limits are inherited by
>  child processes.

I tried both :-) and it still crashes all the time.

>  Depends on your OS.  When you use the "lsof" utility (see
>  above) and it reports more than 256 descriptors in use for
>  your milter-greylist process, then it obviously uses the
>  new limit.  ;-)

I'll install lsof first thing Monday morning and see what it tells me.
Thanks again.

-- 
/peter

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.