fab2008 wrote:
>
>
> Luke Richards wrote:
>>
>>
>> class Yourlibrary_Mail_Transport_Smtp extends Zend_Mail_Transport_Smtp
>> {
>> /**
>> * Send a mail using this transport
>> *
>> * @param Zend_Mail $mail
>> * @access public
>> * @return void
>> * @throws Zend_Mail_Transport_Exception if mail is empty
>> */
>> public function send(Zend_Mail $mail)
>> {
>> $connection = $this->getConnection();
>> if ($connection instanceof Zend_Mail_Protocol_Smtp) {
>> $connection->resetLog();
>> }
>> return parent::send($mail);
>> }
>> }
>>
>> Hope that helps someone.
>>
>
> It has helped me :-) It works...
>
> When I send a lot of mails the log grows and grows without limit. The big
> memory request was not for the $request var, but for reallocation of $_log
> field.
>
> Thank you very much for your hint.
>
>
It definitely works, here are the results (sending about 1200 mails):
Yesterday: 2009-11-10T15:34:28-05:00 INFO (6): Peak memory usage during
script: 129MB
Today: 2009-11-11T15:13:28-05:00 INFO (6): Peak memory usage during script:
17MB
Thank you again :-)
--
View this message in context:
http://old.nabble.com/Incredible-memory-usage-on-public-server%2C-normal-on-dev-server-tp26215767p26309036.html
Sent from the Zend Framework mailing list archive at Nabble.com.