[rt-users] RT 4.0.2 exim Cannot allocate memory

John Mclean john.mclean at axomic.com
Wed Jul 25 09:33:27 EDT 2012


Hi,

We successfully reconfigured our RT server to use Gmail instead of a
local smtp server.

Unfortunately we are running into 'Cannot allocate memory' errors
after apache consumes all the available memory, please see sample
error below:

[Mon Jul 23 09:34:04 2012]
[crit]:<rt-4.0.2-1424-1343036044-450.5978-6-0 at ourdomain>: Could not
send mail with command `/usr/sbin/sendmail -oi -t`: couldn't execute
program: Cannot allocate memory at
/usr/share/request-tracker4/lib/RT/Interface/Email.pm line 448.

The top command, with the shift M option, shows Apache as being the culprit.

Our server is running the below software:

RT 4.0.2
Exim version 4.72
Debian version 6.0.3
Apache/2.2.16 (Debian)

The /etc/request-tracker4/RT_SiteConfig.pm perl module previously had
the below email configuration lines:

Set($MailCommand , 'smtp');
Set($SMTPServer, 'local_email_server');

These have now been changed to:

Set( $MailCommand, 'sendmailpipe');
Set( $SendmailPath , "/usr/sbin/sendmail");
Set( $SendmailArguments , "-oi -t");

Sendmail is a symlink to exim4.

The below thread, sheds more light on the problem, sendmailpipe being
incompatible with exim:

http://comments.gmane.org/gmane.comp.bug-tracking.request-tracker.user/47169

To fix the problem could we use the below configuration in the
/etc/request-tracker4/RT_SiteConfig.pm file?

Set($MailCommand , 'sendmail');
Set($SendmailArguments , "-bm -- <your email address>");
Set($SendmailPath, "/usr/sbin/exim4");
Set($NotifyActor, 1);

Sourced from: http://requesttracker.wikia.com/wiki/ManualInstallation

Or should we use the Apache prefork MPM change in:

http://comments.gmane.org/gmane.comp.bug-tracking.request-tracker.user/47169

Any other suggestions, will be greatly appreciated.

Thanks

John



More information about the rt-users mailing list