Will it helps to move SA's TMPDIR to a ram disk?

Oliver

David F. Skoll wrote:
Daniel Bourque wrote:

   my $mail = $spamtest->parse(\...@message,0);
   my $status = $spamtest->check($mail);
   my $hits = $status->get_hits;
   my $req = $status->get_required_hits();
   my $names = $status->get_names_of_tests_hit();
   my $report = $status->get_report();
   return($hits, $req, $names, $report);

That will leak memory like you wouldn't believe.  You need
to call:

  $mail->finish();
  $status->finish();

before returning. If it happens that those are what's taking a long time,
then your fix may make spamassassin run faster... at the cost of leaking
memory like a sieve and littering /tmp with thousands of files. :-(

Regards,

David.
_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list [email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

--
Oliver Schulze L.
Asuncion - Paraguay
http://tinymailto.com/oliver

_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list [email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to