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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Memory limit exhausted while exporting
Pages: [1]

Author Topic: Memory limit exhausted while exporting  (Read 641 times)

chriscohen

  • Guest
Memory limit exhausted while exporting
August 17, 2010, 02:27:32 am
Hi there, we're running CiviCRM 3.0.2 with Drupal 6, and we have about 200 custom fields per individual.

We are trying to export about 16,000 records by first searching for them, then using the drop-down 'export' option, but when exporting, we are getting the 'memory limit exhausted' error. Drupal requires that we use as much as 128MB of memory for each PHP script, but we really don't want to allocate more than this unless there is no option.

It seems to me like CiviCRM is attempting to load ALL of the contacts into memory before doing the export, but I can't see why this would ever be a sensible course of action, or if this is even the case.

We're not limited to 16,000 here either: there might be situations where we need to export a greater number of records than this.

What is the best thing to do here in order to ensure we can successfully export all of the necessary contacts? Any help or insights would be greatly appreciated.

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: Memory limit exhausted while exporting
August 17, 2010, 05:11:46 am

this is fixed in the 3.2 version

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

chriscohen

  • Guest
Re: Memory limit exhausted while exporting
August 17, 2010, 05:22:29 am
Hi Donald, thanks for the quick response. This is great news.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Memory limit exhausted while exporting

This forum was archived on 2017-11-26.