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.php memory problem
Pages: [1]

Author Topic: civimail.cronjob.php memory problem  (Read 932 times)

Dennis Gray

  • Ask me questions
  • ****
  • Posts: 472
  • Karma: 1
  • CiviCRM version: Various. See post.
  • CMS version: Drupal, Wordpress and Joomla. See post.
  • MySQL version: TBA
  • PHP version: TBA
civimail.cronjob.php memory problem
April 16, 2011, 01:30:53 am
I have set up my cron job using these instructions: http://en.flossmanuals.net/CiviCRM/SystemConfiguration

When the cron job kicks off it never seems to finish. I then used top to see what might be happening and notice the php process hovers around 80% memory and sometimes higher. I've run from the cli and the same thing happens. When I use the url http://mysite.org/index.php?q=civicrm/mailing/queue&reset=1 (not my real site), the apache process it kicks off does the same thing. It just increases in memory size.

I'm not sure where to look in the logs for potential problems. I have a feeling there is a permissions problem somewhere.

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.cronjob.php memory problem
April 16, 2011, 06:33:55 am

2 questions:

1. what happens after it consumes 80% memory or higher. do they just quit

2. can you check your mysql logs (ask your sys admin if u dont know where they are) and see what are the queries being generated when this process is running

thanx

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

Dennis Gray

  • Ask me questions
  • ****
  • Posts: 472
  • Karma: 1
  • CiviCRM version: Various. See post.
  • CMS version: Drupal, Wordpress and Joomla. See post.
  • MySQL version: TBA
  • PHP version: TBA
Re: civimail.cronjob.php memory problem
April 16, 2011, 03:03:11 pm
I've never let the process run far enough to see what happens.  It degrades our test server quite a bit. I will do this today because I'll probably be the only one on it.

Last week I was getting this error:

Warning: fopen(/home/staging/sites/civimail/docs/sites/default/files/civicrm/templates_c/en_US/ConfigAndLog/CiviCRM.13a209e048b2787dcfadabf670800cfc.log): failed to open stream: Permission denied in /home/staging/sites/civimail/docs/sites/all/modules/civicrm/packages/Log/file.php on line 216


This time I was not getting these warning because the permissions were right but I have a feeling that there was some corruption in the files so  just deleted the log files in this directory and restarted the cron. It worked and email was delivered by CiviSMTP immediately and successfully

 
« Last Edit: April 16, 2011, 03:05:36 pm by Ozyank »

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

This forum was archived on 2017-11-26.