CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Mailer Job Size brought my server to it's knees
Pages: [1]

Author Topic: Mailer Job Size brought my server to it's knees  (Read 517 times)

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Mailer Job Size brought my server to it's knees
January 20, 2011, 03:13:26 am
Somehow, my Mailer Job Size got set to "1". I can't remember setting it to that value: is that the default? I've had problems with previous upgrades with the Mailer Settings being changed during an upgrade, but I don't recall that happening here.

What happened is that we attempted to send an email to 2,000 recipients, with Mailer Batch Limit set to 300 and Mailer Job Size set to 1 and civimail.cronjob.php scheduled to run every 5 minutes. The server crashed and required rebooting. The error logs showed multiple copies of civimail.cronjob.php running simultaneously and errors like "INSERT INTO civicrm_activity_target" failing due to duplicates.

Looking at the code, it seems that ...
  • 2,000 "child jobs" were created
  • At least 2 of these were attempting to process the same email address (the only way that duplicate record could be created)

I'd suggest that the locking code is broken. I'd suggest anyone considering setting Mailer Job Size should set it to "0".

Ken

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Mailer Job Size brought my server to it's knees

This forum was archived on 2017-11-26.