Project

General

Profile

Actions

Defect #11106

closed

Email notification processing is slow - Redmine 1.2.2

Defect #11106: Email notification processing is slow - Redmine 1.2.2

Added by Ben Lei over 14 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Email notifications
Target version:
-
Resolution:
Affected version:

Description

1. I have try to update a issue that have 200 members
2. All members have setup the Email notifications to "For any event on my projects"
3. When I updated the issue, it need a lot of time to view.
4. When I use the "Private" button on "New issue", and choose 5 watcher only, it still slow.
5. I have try to config "Asynchronous Email Delivery", but the problem still exit.
6. See the attachment, for cost time record.

Please help me the problem, Thanks.


Files

Redmine_Mail_Slow.jpg (119 KB) Redmine_Mail_Slow.jpg Ben Lei, 2012-06-07 05:50

Related issues 1 (0 open — 1 closed)

Related to Redmine - Feature #26791: Send individual notification mails per mail recipientClosedJean-Philippe LangActions

Updated by Etienne Massip over 14 years ago Actions #1

You should consider using async option in notification settings.

Else, the page is rendered only once all the notifications emails have been sent.

Updated by Ben Lei over 14 years ago Actions #2

Hello:

I have config the "configuration.yml", as below, but it also slow.

production:
delivery_method: :async_sendmail

Updated by Etienne Massip over 14 years ago Actions #3

Less?

Updated by Ben Lei over 14 years ago Actions #4

The cost time almost the same before.

Updated by Ben Lei over 14 years ago Actions #5

Dears:
Thanks your reply.
How may I confirm the async_sendmail is work?

Updated by Ben Lei over 14 years ago Actions #6

This is my configuration on /usr/redmine-1.2.2/config/configuration.yml

production:
delivery_method: :async_smtp
smtp_settings:
tls: true
address: "xxx.com.tw"
port: 587
authentication: :plain
domain: 'xxx.com.tw'
user_name: xxx
password: xxx

Updated by Ben Lei over 14 years ago Actions #7

Dears:

I also try to use gmail, but the cost time was 29XXXms, still have long time.

production:
  email_delivery:
    delivery_method: :async_smtp
    smtp_settings:
      tls: true
      enable_starttls_auto: true
      address: "smtp.gmail.com" 
      port: '587'
      domain: "smtp.gmail.com" 
      authentication: :plain
      user_name: "xxx@gmail.com" 
      password: "xxx" 

Updated by Ben Lei over 14 years ago Actions #8

Another Question:
4. The same environment, when I use the "Private" button on "New issue", and choose 5 watcher only. Why the CPU usage is full use between 30 sec. If the system was waiting mail server response, What does the CPU work?

Updated by Adam Bellaire over 14 years ago Actions #9

I'd just like to add that I was having a similar problem with async_smtp, causing 500 internal server error and consuming 100% cpu for around 30 seconds. I was using async_smtp against our local SMTP server, both with and without TLS. I was not able to resolve the issue, and had to switch to using async_sendmail (which fortunately was a valid option for me), and everything is fine.

This really seems like an implementation problem with async_smtp.

Updated by She Bytes over 9 years ago Actions #10

Ben Lei wrote:

This is my configuration on /usr/redmine-1.2.2/config/configuration.yml

production:
delivery_method: :async_smtp
smtp_settings:
tls: true
address: "xxx.com.tw"
port: 587
authentication: :plain
domain: 'xxx.com.tw'
user_name: xxx
password: xxx

Switching from delivery_method "smtp" to "async_smtp" solved my problem. Thanks!

Updated by Go MAEDA over 9 years ago Actions #11

  • Category set to Email notifications

Updated by Go MAEDA about 9 years ago Actions #12

  • Status changed from New to Closed

It seems that using asynchronous delivery solved the problem. Closing.

Updated by Go MAEDA about 9 years ago Actions #13

  • Related to Feature #26791: Send individual notification mails per mail recipient added
Actions

Also available in: PDF Atom