On Mon, Apr 22, 2002 at 02:04:27PM +1000, Adam Goryachev wrote:
> So, is there some method to tell perl, if you run out of memory, give me a
> signal so I can fail nicely instead of just exiting.

Not without using malloc - pre-allocating memory before you start filling it.


> Yes, it does, but I tend to prefer to know when something goes wrong, so my
> monitoring threshold for disk space is around 20% full, (because normal is
> around 10% full) so I see these things when they happen. Also, it is made
> worse because some mail servers see a tempfail and will immediately retry,
> instead of waiting a while. (I also noticed a *constant* 64kbps of inbound
> bandwidth in use over a 4 day period, before I noticed what was happening....
> I suppose the sender only had 64kbps of bandwidth :)
> 

I certainly understand that - but the day I rewrite Q-S to worry about
malloc is the day it's written in C! :-) 

But to ask you a question. Every time Q-S ran out of memory, there would
have been an error reported via syslog - so you WERE told there was a problem.

Here we use swatch to monitor our syslog servers, and they page me whenever
Q-S errors show up in the logs. 

-- 
Cheers

Jason Haar

Information Security Manager
Trimble Navigation Ltd.
Phone: +64 3 9635 377 Fax: +64 3 9635 417

_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

Reply via email to