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 cronjob problem
Pages: [1]

Author Topic: Civimail cronjob problem  (Read 1131 times)

midloman

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 1
Civimail cronjob problem
August 21, 2010, 01:21:16 am
After upgrading to 3.2, my mail jobs are taking a very long time.
My run this afternoon for 1068 recipients took 5 1/2 hours to complete.

Every other email run I have ever made on this system, since I set it up, has taken less then 3 minutes to complete.
I call the Civimail cronjob every 30 minutes.

I began another mail run early this morning, and discovered only about 130 emails were being sent each cron run.
I loaded the curl string into my browser and ran it manually, and sure enough, about 130 emails were sent each time.
By repeatedly refreshing the browser window, I was able to force the email run of 1584 in about 30 minutes.

The only entry in my log that looked odd was this one:

Location: http://www.pmicvc.org/sites/all/modules/civicrm/bin/civimail.cronjob.php?name=myusername&pass=mypassword&key=mykey

mysqli_query() [<a href='function.mysqli-query'>function.mysqli-query</a>]: (HY000/2008): MySQL client ran out of memory in /home/virtual/site378/fst/var/www/html/includes/database.mysqli.inc  on line 108.

This was well after beginning the browser forcing of the cron job. (like 15-20 minutes after).



Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Civimail cronjob problem
August 21, 2010, 02:17:53 am
Not sure why cron is taking so long.

Quote
mysqli_query() [<a href='function.mysqli-query'>function.mysqli-query</a>]: (HY000/2008): MySQL client ran out of memory in /home/virtual/site378/fst/var/www/html/includes/database.mysqli.inc  on line 108.
This is definitely not related to CiviCRM.

Kurund
Found this reply helpful? Support CiviCRM

midloman

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 1
Re: Civimail cronjob problem
August 21, 2010, 09:07:28 am
The job itself took just seconds to execute.  It only sent 120-135 emails when it ran.  No problems, overloads, or throttling going on with the ISP.

midloman

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 1
Re: Civimail cronjob problem
August 21, 2010, 11:03:24 pm
Same result today, but I captured the backtrace from my log.

Error and backtrace are attached in pdf

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Civimail cronjob problem
August 22, 2010, 12:21:13 am
The function that seems to have triggered high memory use is the token function - what tokens are in your civimail?
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

midloman

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 1
Re: Civimail cronjob problem
August 22, 2010, 07:55:28 am
Very few tokens.  contact.firstname and action.unsubscribe
This is an email pattern I've been using for a long time.

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Civimail cronjob problem
August 22, 2010, 12:04:51 pm
That seems really odd - what do you have in the way of Custom hooks? Anything? Do you use ACLs?
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

midloman

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 1
Re: Civimail cronjob problem
August 22, 2010, 12:15:51 pm
Nope, I've tried to stay as close to 'stock' as possible.  I don't even have customized reports.

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

This forum was archived on 2017-11-26.