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 CiviReport (Moderator: Dave Greenberg) »
  • Out of Memory crash running reports
Pages: [1]

Author Topic: Out of Memory crash running reports  (Read 3788 times)

clarkac

  • Administrator
  • Ask me questions
  • *****
  • Posts: 399
  • Karma: 11
  • CiviCRM version: 4.4.11 & 4.5.5
  • CMS version: Drupal 7
  • MySQL version: 5.1.61-cll
  • PHP version: 5.3.27
Out of Memory crash running reports
March 20, 2012, 11:06:51 am
I got these errors running 3 different reports.  Do I need to configure more memory for PHP in my installation, or is this a bug?  I've run these reports before with no problems so am thinking this is my hosting site, and would appreciate some guidance.

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 42 bytes) in /data02/c1185369/public_html/wp/wp-content/plugins/civicrm/civicrm/packages/dompdf/include/css_color.cls.php on line 264


Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 47 bytes) in /data02/c1185369/public_html/wp/wp-content/plugins/civicrm/civicrm/packages/dompdf/include/cellmap.cls.php on line 324

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 47 bytes) in /data02/c1185369/public_html/wp/wp-content/plugins/civicrm/civicrm/packages/dompdf/include/style.cls.php on line 565
Andy Clark

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Out of Memory crash running reports
March 20, 2012, 12:19:48 pm
Quote from: clarkac on March 20, 2012, 11:06:51 am
Do I need to configure more memory for PHP in my installation

Yes. You're maxing out at 134 MB. While it's true that the CiviCRM team recommends 128 MB, this is a minimum and some operations will require more.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

clarkac

  • Administrator
  • Ask me questions
  • *****
  • Posts: 399
  • Karma: 11
  • CiviCRM version: 4.4.11 & 4.5.5
  • CMS version: Drupal 7
  • MySQL version: 5.1.61-cll
  • PHP version: 5.3.27
Re: Out of Memory crash running reports
March 21, 2012, 03:18:36 am
Thanks for the reply - my hosting site has a limit of 128mb.   This problem occurs when printing a report to pdf, otherwise it's ok.  I notice another post with the same problem   http://forum.civicrm.org/index.php/topic,23956.msg100731.html#msg100731 which makes me wonder whether 128mb is no longer realistic?
Andy Clark

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: Out of Memory crash running reports
March 21, 2012, 06:24:31 am

based on various reports, i do think that some of Civi's PDF stuff s streching the memory and computational limits of dompdf. So to some extent predicting the amount of memory that dompdf will need to generate a PDF is fairly hard

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

clarkac

  • Administrator
  • Ask me questions
  • *****
  • Posts: 399
  • Karma: 11
  • CiviCRM version: 4.4.11 & 4.5.5
  • CMS version: Drupal 7
  • MySQL version: 5.1.61-cll
  • PHP version: 5.3.27
Re: Out of Memory crash running reports
March 21, 2012, 06:51:10 am
I increased PHP memory to 156mb for Wordpress, but still get an out of memory in CiviReports when creating a pdf - as though limit was still 128mb.  I guess this is the wrong place to increase memory?  Where should it be increased? :(
Andy Clark

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Out of Memory crash running reports
March 21, 2012, 06:53:09 am
Try in php.ini but you may have to ask your host if they allot more than that.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

clarkac

  • Administrator
  • Ask me questions
  • *****
  • Posts: 399
  • Karma: 11
  • CiviCRM version: 4.4.11 & 4.5.5
  • CMS version: Drupal 7
  • MySQL version: 5.1.61-cll
  • PHP version: 5.3.27
Re: Out of Memory crash running reports
March 21, 2012, 07:41:20 am
Please excuse my ignorance, but in what directory should I place php.ini?
Andy Clark

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Out of Memory crash running reports
March 21, 2012, 07:42:47 am
Root of Drupal, i.e. where index.php and sites folder are.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

clarkac

  • Administrator
  • Ask me questions
  • *****
  • Posts: 399
  • Karma: 11
  • CiviCRM version: 4.4.11 & 4.5.5
  • CMS version: Drupal 7
  • MySQL version: 5.1.61-cll
  • PHP version: 5.3.27
Re: Out of Memory crash running reports
March 21, 2012, 07:44:59 am
..or where phpinfo() says where php.ini is (always best to answer your own posts!)
Andy Clark

clarkac

  • Administrator
  • Ask me questions
  • *****
  • Posts: 399
  • Karma: 11
  • CiviCRM version: 4.4.11 & 4.5.5
  • CMS version: Drupal 7
  • MySQL version: 5.1.61-cll
  • PHP version: 5.3.27
Re: Out of Memory crash running reports
March 21, 2012, 03:19:23 pm
I copied the installation default php.ini, changed the memory limit to 156M and placed in the root directory which is called .../public_html  & got same out of memory error, then in (public_html/wp), and got same error.  Then tried public_html/wp/wp-content but still running out at 128M !   For some reason this is not working - does something else need to be done?  I logged off and tried the CiviCRM clear cache each time.  Any suggestions?
Andy Clark

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Out of Memory crash running reports
March 22, 2012, 03:57:13 am
Can you ask your host for assistance?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

clarkac

  • Administrator
  • Ask me questions
  • *****
  • Posts: 399
  • Karma: 11
  • CiviCRM version: 4.4.11 & 4.5.5
  • CMS version: Drupal 7
  • MySQL version: 5.1.61-cll
  • PHP version: 5.3.27
Re: Out of Memory crash running reports
March 22, 2012, 02:24:14 pm
I asked my host to help and they increased memory to 156M - I ran a phpinfo.php that showed this had worked.  When I retried the report it crashed in exactly the same way, out of memory at 128M.  I'm moving to a host that has 156M default so decided to go there fast!  Thanks for responses on this...
Andy Clark

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviReport (Moderator: Dave Greenberg) »
  • Out of Memory crash running reports

This forum was archived on 2017-11-26.