Project

General

Profile

redmine:email:receive_pop3 uses 100% cpu

Added by Krzysztof K over 2 years ago

Hi,

The command below create issues in the Redmine using fetched e-mail messages. The problem is this process uses 100% cpu for about 2 minutes which blocks the whole VPS as is the only one vCPU. Is there any way to resolve this?

bundle exec rake -f "$REDMINE_PATH"/Rakefile redmine:email:receive_pop3 RAILS_ENV="production" host="$HOST" ssl=SSL  port="$PORT" username="$MAIL_USERNAME" password="$MAIL_PWD" project="$PROJECT" priority="Normalny" unknown_user=ignore  --trace

system info:

Environment:
  Redmine version                4.2.1.stable
  Ruby version                   2.6.8-p205 (2021-07-07) [x86_64-linux]
  Rails version                  5.2.5
  Environment                    production
  Database adapter               Mysql2
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                smtp
SCM:
  Git                            2.32.0
  Filesystem                     
Redmine plugins:
  no plugin installed


Replies (1)

RE: redmine:email:receive_pop3 uses 100% cpu - Added by Krzysztof K over 2 years ago

It turned out there was a problem with the VPS instance itself. After it was resolved the e-mail reciving task takes 10 seconds instead of 2 minutes. Even though this is less interruptive than before I use the /usr/bin/nice program with parameter 19 to definetly get rid of the issue.

nice 19 bundle exec rake...
    (1-1/1)