Forum: JRuby Slow mail deliveries using JRuby

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
5423e01b66b26dbc154a2a3a73b467b8?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.

Thanks!
Antonio
A8f7c2b66fafa83e9537c1f82348f11d?d=identicon&s=25 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
the
process?
5423e01b66b26dbc154a2a3a73b467b8?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.