Forum: JRuby Slow mail deliveries using JRuby

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
B852dd5caf6bef5a5c4e2de35cfcd827?d=identicon&s=25 Toño S. (too_s)
on 2015-02-10 00:07
Hi All,

I have a problem when sending bulk emails on my Rails 3.2 app with a big
difference in performance compared to the standard MRI 2.1. The problem
seams to be the mail() method invocation inside the mailer class.

Is this mailer problem something known in JRuby, or is just me?

I'm using JRuby 1.7.13.

Doug Hathaway (Guest)
on 2015-02-10 00:17
(Received via mailing list)
How many emails are you sending?
Also, are you loading a large amount of records into memory as part of
B852dd5caf6bef5a5c4e2de35cfcd827?d=identicon&s=25 Toño S. (too_s)
on 2015-02-10 00:23
I'm sending lots of emails, but using paginated results.

I tested the method in both MRI and JRuby with the same amount of data,
and the bottleneck is the Mailer's mail() render method.

In MRI i'm able to process 20~40 mails per second.

In JRuby 2 or 3.
This topic is locked and can not be replied to.