Qmail
[Top] [All Lists]

Re: Help?

To: qmail@list.cr.yp.to
Subject: Re: Help?
From: "Nathan C. Tresch" <nathan@yapta.com>
Date: Thu, 24 May 2007 13:16:06 -0700
Delivered-to: sp-com-lists@consult.net
Delivered-to: gmail-qmail@securepoint.com
Delivered-to: sp.com.list@gmail.com
Delivered-to: mailing list qmail@list.cr.yp.to
In-reply-to: <20070524200321.GF27573@caesar.cse.nd.edu>
Mailing-list: contact qmail-help@list.cr.yp.to; run by ezmlm
References: <8e3f377c0705241109h9decbb2n2ce9a5ae148e9f20@mail.gmail.com> <20070524200321.GF27573@caesar.cse.nd.edu>
"How high is too high?"

400 or so concurrent emails being sent seems to trigger this behavior

"Restart what server? Are you calling your python program "the server"?"

I'm calling the qmail system "the server"

"Is that really an exit code, or is it the result of a wait() syscall?
(if the latter, then it's probably telling you that it died from a
signal rather than returned a value).

The reason I ask is that unless you've been patching your qmail
server, qmail-inject will only ever return one of three exit codes: 0,
100, and 111."

I'll look into what else might be giving me the exit code of 15.

"... I thought you *restarted* the server. If you *restarted* it, how
are you getting back return values?"

My email server process doensn't ever hang, the threads it spawns do, I dont restart it until after I get the return.

On 5/24/07, Kyle Wheeler <kyle-qmail@memoryhole.net> wrote:
On Thursday, May 24 at 11:09 AM, quoth Nathan C. Tresch:
> When the volume gets too high,

How high is too high? If "too high" is a billion concurrent processes,
you're going to run out of memory, your computer's going to hang, the
Linux kernel's OOM-killer will trigger, lots of processes will die,
and there's not a lot you can do about it. If "too high" is, say,
five, then something is wrong.

> my process seems to hang and wait for the qmail-inject process to
> close. After we kill the qmail processes and restart the server,



> I get an exit code of '15'

Is that really an exit code, or is it the result of a wait() syscall?
(if the latter, then it's probably telling you that it died from a
signal rather than returned a value).

The reason I ask is that unless you've been patching your qmail
server, qmail-inject will only ever return one of three exit codes: 0,
100, and 111.

> back to my server process.

... I thought you *restarted* the server. If you *restarted* it, how
are you getting back return values?

~Kyle
--
Old boys have their playthings as well as young ones; the difference
is only in the price.
                                                   -- Benjamin Franklin




--
Nathan C. Tresch
Software Engineer
YapTA! Inc.
<Prev in Thread] Current Thread [Next in Thread>