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) »
  • dompdf memory issues.
Pages: [1]

Author Topic: dompdf memory issues.  (Read 3057 times)

SweetTooth

  • I post occasionally
  • **
  • Posts: 70
  • Karma: 1
  • CiviCRM version: 4.1
  • CMS version: Drupal 6.20
  • MySQL version: 5.1.54
  • PHP version: 5.2.17
dompdf memory issues.
February 16, 2011, 06:14:05 am

Hello,

I am doing a very simple pdf letter to about 3800 people and I ran out of memory at 1GB.

There appears to be lots of dompdf memory issues knocking about.

Surely I should be able to do a mailshot to serveral thousand people without sitting here waiting forever just to run out of memory?

Is there known issues with the config that I'm running at?


xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: dompdf memory issues.
February 16, 2011, 08:26:42 am
Yeap, dompdf seems to like memory indeed.

Short fix might be to increase the memory limit in the letter generation script, but 1GB is already quite on the very high side.

Longer fix is to investigate where the memory leak, might need to add a dao->free or something. This isn't trivial task to hunt down, I'd suggest using a local copy and install xdebug and enable the profiler.

You might want to come on IRC if you want to try fixing it, some have done that for the dedupe for instance and have probably some words of wisdom to help.
X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

SweetTooth

  • I post occasionally
  • **
  • Posts: 70
  • Karma: 1
  • CiviCRM version: 4.1
  • CMS version: Drupal 6.20
  • MySQL version: 5.1.54
  • PHP version: 5.2.17
Re: dompdf memory issues.
February 16, 2011, 01:01:45 pm

I don't have a local server and civicrm runs like a pig on my laptop.

However, I don't mind to get Drupal + Civi + Xdebug installed onto a tempory cloud server.

It's about time I got something like that fired up.

I can install xdebug...get it running, but I've never used it in anger. I'm prepared to put some work in, but I'll need a little help here and there.

I can kill 2 birds with 1 stone here as I want to test Civi on a particular cloud server setup. The last 64bit XEN cloud setup I tried wasn't too happy importing records...it kept timing out!

I'll report back when I have a test cloud server ready....once I've set it up...I can just power it down and store it you see....


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: dompdf memory issues.
February 16, 2011, 03:28:15 pm

i think the memory leak / usage is within dompdf when generating pdf documents. i'm pretty sure that civicrm is not a big factor here

u might want to check on the dompdf forums and see if there is a fix to this issue in the next 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

jalama

  • I post frequently
  • ***
  • Posts: 176
  • Karma: 22
    • Rooty Hollow LLC
  • CiviCRM version: 3.3.5
  • CMS version: Drupal 6 and 7
  • MySQL version: 5.1
  • PHP version: 5.2.5 and 5.3
Re: dompdf memory issues.
June 02, 2011, 04:26:43 pm
We're seeing something similar (Drupal 7.x, CiviCRM 4.0.0) where dompdf if timing out the confirmation page of an event.  If you tell CiviCRM not to send a confirmation e-mail it works fine.  Nto an ideal solution, but works for now.
http://www.rootyhollow.com

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • dompdf memory issues.

This forum was archived on 2017-11-26.