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) »
  • CiviMail Cron Frequency
Pages: [1]

Author Topic: CiviMail Cron Frequency  (Read 532 times)

noneother

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: 4.1.3
  • CMS version: Drupal 6
  • MySQL version: 5.5.20
  • PHP version: 5.3.13
CiviMail Cron Frequency
May 17, 2012, 11:00:31 am
I was wondering how other administrators are scheduling their cron jobs.  I intend to have it run every minute as indicated below but after a few days it caused my DB to crash.  Is this because the previous cron has not completed and is starting a new one?  If so, does anyone have a good strategy on how to send out mailings by the minute?

===

PARAMS= -j -sdefault -u username -p password -e Job -a process_mailing
*/1 * * * *  cd $CIVI_ROOT; $PHP bin/cli.php $PARAMS

===

<p>Initialization Error</p><p><pre>Array
(
   [callback] =&gt; Array
       (
           
  • =&gt; CRM_Core_Error
  • [1] =&gt; simpleHandler
           )

       
[c.ode] =&gt; -24
   [message] =&gt; DB Error: connect failed
   [mode] =&gt; 16
   [debug_info] =&gt;  [nativecode=Too many connections]
   [type] =&gt; DB_Error
   [user_info] =&gt;  [nativecode=Too many connections]
   [to_string] =&gt; [db_error: message=&quot;DB Error: connect failed&quot; code=-24 mode=callback callback=CRM_Core_Error::simpleHandler prefix=&quot;&quot; info=&quot; [nativecode=Too many connections]&quot;]
)
</pre></p><p></p><p>backTrace</p><p><pre>/usr/local/www/drupal/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 235
, simpleHandler,
/usr/local/www/drupal/sites/all/modules/civicrm/packages/PEAR.php, call_user_func, 931
/usr/local/www/drupal/sites/all/modules/civicrm/packages/DB.php, PEAR_Error, 968
/usr/local/www/drupal/sites/all/modules/civicrm/packages/PEAR.php, DB_Error, 564
/usr/local/www/drupal/sites/all/modules/civicrm/packages/DB/common.php, raiseError, 1903
/usr/local/www/drupal/sites/all/modules/civicrm/packages/DB/mysqli.php, raiseError, 338
/usr/local/www/drupal/sites/all/modules/civicrm/packages/DB.php, connect, 558
/usr/local/www/drupal/sites/all/modules/civicrm/packages/DB/DataObject.php, connect, 2295
/usr/local/www/drupal/sites/all/modules/civicrm/packages/DB/DataObject.php, _connect, 2533
/usr/local/www/drupal/sites/all/modules/civicrm/packages/DB/DataObject.php, _build_condition, 411
/usr/local/www/drupal/sites/all/modules/civicrm/CRM/Core/BAO/ConfigSetting.php, find, 203
/usr/local/www/drupal/sites/all/modules/civicrm/CRM/Core/Config.php, retrieve, 408
/usr/local/www/drupal/sites/all/modules/civicrm/CRM/Core/Config.php, _initVariables, 209
/usr/local/www/drupal/sites/all/modules/civicrm/bin/cli.php, singleton, 151
/usr/local/www/drupal/sites/all/modules/civicrm/bin/cli.php, _bootstrap, 54
/usr/local/www/drupal/sites/all/modules/civicrm/bin/cli.php, initialize, 29</pre></p><p></p>

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: CiviMail Cron Frequency
May 17, 2012, 11:41:14 am

Check:

http://drupal.demo.civicrm.org/civicrm/admin/mail?reset=1

You can restrict the number of civimail cron jobs running at any given time. It also depends on your hosting provider and the max number of connections they've set etc

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

noneother

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: 4.1.3
  • CMS version: Drupal 6
  • MySQL version: 5.5.20
  • PHP version: 5.3.13
Re: CiviMail Cron Frequency
May 22, 2012, 10:32:39 am
Turned down the "Mailer CRON job limit" and things seem fine for now.  Thanks Donald!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • CiviMail Cron Frequency

This forum was archived on 2017-11-26.