Memory leak?
Arik Raffael Funke <[email protected]>
| Newsgroups | gmane.mail.spam.tmda.user |
|---|---|
| Message-ID | <[email protected]> |
Hi,
my tmda-inject called via qmail-queue crashes when trying to send an
email with a 14MB attachment due to "out of memory". In the process,
tmda-inject allocates the grand total of 148MB. That seems a bit
excessive to me for an email of 14MB. Could there be something wrong
with my configuration or is it a memory leak?
output from "free -s 1" before and after crash:
===============================================
total used free shared buffers cached
Mem: 515600 448496 67104 0 14504 110724
-/+ buffers/cache: 323268 192332
Swap: 1048568 248 1048320
total used free shared buffers cached
Mem: 515600 300560 215040 0 12140 82188
-/+ buffers/cache: 206232 309368
Swap: 1048568 248 1048320
log in /var/log/qmail/smtpd/current:
====================================
2007-01-31 17:31:50.591071500 Traceback (most recent call last):
2007-01-31 17:31:50.591195500 File "/usr/bin/tmda-inject", line 461, in ?
2007-01-31 17:31:50.591423500 main()
2007-01-31 17:31:50.591473500 File "/usr/bin/tmda-inject", line 452,
in main
2007-01-31 17:31:50.591654500 log_msg)
2007-01-31 17:31:50.591702500 File "/usr/bin/tmda-inject", line 285,
in inject_message
2007-01-31 17:31:50.591822500 Util.sendmail(Util.msg_as_string(msg,
78), to_address, envelope_sender)
2007-01-31 17:31:50.591866500 File
"/usr/lib/python2.3/site-packages/TMDA/Util.py", line 564, in msg_as_string
2007-01-31 17:31:50.592068500 g.flatten(msg, unixfrom=unixfrom)
2007-01-31 17:31:50.592111500 File
"/usr/lib/python2.3/site-packages/TMDA/pythonlib/email/generator.py",
line 84, in flatten
2007-01-31 17:31:50.592164500 self._write(msg)
2007-01-31 17:31:50.592205500 File
"/usr/lib/python2.3/site-packages/TMDA/pythonlib/email/generator.py",
line 119, in _write
2007-01-31 17:31:50.592264500 self._fp.write(sfp.getvalue())
2007-01-31 17:31:50.592346500 MemoryError: out of memory
outgoing filter file:
=====================
to *@=mydomain.com bare
to-file ~/.tmda/lists/whitelist tag envelope dated=11d from bare
to-file ~/.tmda/lists/whitelist_confirmed tag envelope dated=11d from bare
to-file ~/.tmda/lists/whitelist_outgoing tag envelope dated=11d from bare
to * tag envelope dated=11d reply-to dated from bare=append
I am using tdma-inject version 1.1.9.
I would appreciate any comments on this.
Regards,
Arik