[jruby-user] Slow mail deliveries using JRuby

3 views
Skip to first unread message

Toño S.

unread,
Feb 9, 2015, 6:07:28 PM2/9/15
to us...@jruby.codehaus.org
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

--
Posted via http://www.ruby-forum.com/.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


Doug Hathaway

unread,
Feb 9, 2015, 6:17:04 PM2/9/15
to us...@jruby.codehaus.org
How many emails are you sending?
Also, are you loading a large amount of records into memory as part of the process? 

Toño S.

unread,
Feb 9, 2015, 6:23:25 PM2/9/15
to us...@jruby.codehaus.org
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.
Reply all
Reply to author
Forward
0 new messages