procmail
[Top] [All Lists]

Re: Out of Memory errors

2002-03-15 01:57:15
Mmm. This is the second time I've sent an item to this list, and the second
time I've received no feedback. Am I doing something wrong? Did I forget my
deodorant today, or is it that no one knows what I'm talking about?


On Wed, 13 Mar 2002 18:34:03 +0700, you wrote:

This might not be a Procmail problem, but as Procmail is the only program
that I am having problems with I'd like to ask this here.

I am using a Procmail rc file to catch email sender, subject and first part
of the message to send to a pager.

This is the rc file:

LOGFILE=./procmail.logfile
LOGABSTRACT=y
VERBOSE=y
PAGNUM=12345678
COMSAT=no

SUBJECT=`formail -zxSubject:`
FROM=`formail -b -rtzxTo:`

:0
*!^FROM_DAEMON
*!^From:[       ]*my(_at_)own(_dot_)address
* ? egrep "$FROM" ./vip.group
{
:0c
| mpage.pl $PAGNUM UFEmail! Fr:$FROM Sub:$SUBJECT

:0abc
*<5000
{
:0
MESSAGE=|formail -I "" | sed ':a;N;s/^\n//;s/[\n        ]\{1,\}/ /g;ta;' |
head -c 134

:0
| mpage.pl $PAGNUM Em:$MESSAGE
}
}


I realise that this is not an 'optimised' recipe, and there are probably
several different ways of improving it, but the fact is that it works, after
a fashion, for about 3 weeks. After this time, I start getting messages like
this:

Mar 13 16:12:37 pc procmail[1722]: Out of memory as I tried to allocate
134592524 bytes
Mar 13 16:12:43 pc procmail[1736]: Out of memory as I tried to allocate
134592524 bytes

in the maillog, and like this:

procmail: Out of memory

in the procmail log, just at the formail line (if I run it in the sandbox,
it never gets past the SENDER=|$FORMAIL -b -rtzxTo: line in the calling
procmail.testrc recipe)

However, after rebooting the server (which I hadn't done for 67 days) it
works perfectly again, with no errors at all. (Apart from a writing one
which I know about)

The output from 'top' shows that there is swap space available, the machine
has 64MB of ram. 

I've seen references to memory errors in the past, but I'm not sure how to
apply those to my particular case. What should I be looking for here?

Any help would be very welcome.

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>