OK, that code is in. I recompiled and it's running. I haven't seen any
output from it yet. However I'm a C nincompoop, so let me know if the
syntax is correct here:
if ((dumpfd = mkstemp(newdumpfile)) == -1) {
syslog(LOG_ERR, "mkstemp(\"%s\") failed: %s",
newdumpfile, strerror(errno));
syslog(LOG_INFO, "dumpfd = %d", dumpfd);
exit(EX_OSERR);
}
________________________________
From: manu@... [mailto:manu@...]
Sent: Wednesday, October 13, 2004 11:11 PM
To: milter-greylist@...m
Subject: Re: [milter-greylist] RE: Volume
Sutherland, James <jsutherl@newedgenetworks.com> wrote:
> Then hours later it reports this ( a bunch of times all the same file
> names):
> Oct 13 08:16:56 hns1 milter-greylist: [ID 653641 mail.error]
> mkstemp("/var/milter-greylist/greylist.db-XX1Daq3G") failed: Too many
> open files
Now, that's interesting: you hit a file descriptor limit. That suggests
a file descriptor leak. Nobody ever reported that, but your setup is
quite heavyweight.
In dump.c, after the mkstemp call, add
syslog(LOG_INFO, "dumpfd = %d", dumpfd);
Run milter-greylist, and check in the log if dumpfd increases as time
goes. If it does, check the open files for milter-greylist (with a tool
such as lsof) and look for similar pool of open files that keeps
growing. Is it a file (which one)? Is it a socket?
> Then:
> Oct 13 08:16:56 hns1 milter-greylist: [ID 421540 mail.info] Final
> database dump: no change to dump
That's okay, it just means that milter-greylist was terminated because
of a resource limit (file descriptors), and that there was no change to
flush to disk at that time. It didn't crashed, it quitted safely.
--
Emmanuel Dreyfus
Il y a 10 sortes de personnes dans le monde: ceux qui comprennent
le binaire et ceux qui ne le comprennent pas.
manu@...
Yahoo! Groups Sponsor
ADVERTISEMENT
click here
<http://us.ard.yahoo.com/SIG=12906lk6q/M=315388.5497957.6576270.3001176/
D=groups/S=1707281942:HM/EXP=1097820693/A=2372354/R=0/SIG=12id813k2/*htt
ps://www.orchardbank.com/hcs/hcsapplication?pf=PLApply&media=EMYHNL40F21
004SS>
<http://us.adserver.yahoo.com/l?M=315388.5497957.6576270.3001176/D=group
s/S=:HM/A=2372354/rand=890033913>
________________________________
Yahoo! Groups Links
* To visit your group on the web, go to:
http://groups.yahoo.com/group/milter-greylist/
* To unsubscribe from this group, send an email to:
milter-greylist-unsubscribe@yahoogroups.com
<mailto:milter-greylist-unsubscribe@yahoogroups.com?subject=Unsubscribe>
* Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service <http://docs.yahoo.com/info/terms/> .Message
RE: [milter-greylist] RE: Volume
2004-10-14 by Sutherland, James
Attachments
- No local attachments were found for this message.